You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by sm...@apache.org on 2015/02/16 04:28:14 UTC

directory-fortress-core git commit: add tomcat resources for testing

Repository: directory-fortress-core
Updated Branches:
  refs/heads/master 4433cc1a5 -> 32c007cf7


add tomcat resources for testing


Project: http://git-wip-us.apache.org/repos/asf/directory-fortress-core/repo
Commit: http://git-wip-us.apache.org/repos/asf/directory-fortress-core/commit/32c007cf
Tree: http://git-wip-us.apache.org/repos/asf/directory-fortress-core/tree/32c007cf
Diff: http://git-wip-us.apache.org/repos/asf/directory-fortress-core/diff/32c007cf

Branch: refs/heads/master
Commit: 32c007cf70f1962479673a2fc8d6945878043b52
Parents: 4433cc1
Author: Shawn McKinney <sm...@apache.org>
Authored: Sun Feb 15 21:28:01 2015 -0600
Committer: Shawn McKinney <sm...@apache.org>
Committed: Sun Feb 15 21:28:01 2015 -0600

----------------------------------------------------------------------
 ldap/setup/TomcatManagerUsers.xml   |  49 +++++++++++++++++++++++++++++++
 src/test/resources/certs/mykeystore | Bin 0 -> 2261 bytes
 2 files changed, 49 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/directory-fortress-core/blob/32c007cf/ldap/setup/TomcatManagerUsers.xml
----------------------------------------------------------------------
diff --git a/ldap/setup/TomcatManagerUsers.xml b/ldap/setup/TomcatManagerUsers.xml
new file mode 100755
index 0000000..f5e8349
--- /dev/null
+++ b/ldap/setup/TomcatManagerUsers.xml
@@ -0,0 +1,49 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+   Licensed to the Apache Software Foundation (ASF) under one
+   or more contributor license agreements.  See the NOTICE file
+   distributed with this work for additional information
+   regarding copyright ownership.  The ASF licenses this file
+   to you under the Apache License, Version 2.0 (the
+   "License"); you may not use this file except in compliance
+   with the License.  You may obtain a copy of the License at
+
+     http://www.apache.org/licenses/LICENSE-2.0
+
+   Unless required by applicable law or agreed to in writing,
+   software distributed under the License is distributed on an
+   "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+   KIND, either express or implied.  See the License for the
+   specific language governing permissions and limitations
+   under the License.
+-->
+<project basedir="." default="all" name="Fortress Sample Data">
+    <taskdef classname="org.apache.directory.fortress.core.ant.FortressAntTask" name="FortressAdmin" >
+        <classpath path="${java.class.path}"/>
+    </taskdef>
+
+    <target name="all">
+        <FortressAdmin>
+
+            <adduser>
+                <user userId="tcmanager" password="m@nager123" system="true" description="Tomcat Manager User" ou="demousrs1" cn="tcmanager" sn="manager"  pwPolicy="Test1" beginTime="0000" endTime="0000" beginDate="20090101" endDate="20990101" beginLockDate="" endLockDate="" dayMask="1234567" timeout="0" />
+            </adduser>
+
+            <adduserrole>
+                <userrole userId="tcmanager" name="manager-gui"  beginTime="0000" endTime="0000" beginDate="" endDate="" beginLockDate="" endLockDate="" dayMask="" timeout="0"/>
+                <userrole userId="tcmanager" name="manager-script"  beginTime="0000" endTime="0000" beginDate="" endDate="" beginLockDate="" endLockDate="" dayMask="" timeout="0"/>
+            </adduserrole>
+
+            <addrole>
+                <role name="manager-gui" description="Tomcat 7 Manager Role for Manager UI"/>
+                <role name="manager-script" description="Tomcat 7 Manager Role for Management Scripts"/>
+            </addrole>
+
+            <!-- Begin ARBAC Delegated Admin Data: -->
+            <addorgunit>
+                <orgunit name="demousrs1" typeName="USER" description="Test User Org 1 for User on Tomcat Calendar App"/>
+            </addorgunit>
+
+         </FortressAdmin>
+    </target>
+</project>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/directory-fortress-core/blob/32c007cf/src/test/resources/certs/mykeystore
----------------------------------------------------------------------
diff --git a/src/test/resources/certs/mykeystore b/src/test/resources/certs/mykeystore
new file mode 100755
index 0000000..34b96dc
Binary files /dev/null and b/src/test/resources/certs/mykeystore differ