[jboss-svn-commits] JBoss Portal SVN: r5681 - trunk/identity/src/resources/draft

jboss-svn-commits at lists.jboss.org jboss-svn-commits at lists.jboss.org
Mon Nov 20 09:12:37 EST 2006


Author: bdaw
Date: 2006-11-20 09:12:35 -0500 (Mon, 20 Nov 2006)
New Revision: 5681

Added:
   trunk/identity/src/resources/draft/simple1-identity-config.xml
   trunk/identity/src/resources/draft/simple2-identity-config.xml
Log:
- draft of identity configuration files

Added: trunk/identity/src/resources/draft/simple1-identity-config.xml
===================================================================
--- trunk/identity/src/resources/draft/simple1-identity-config.xml	2006-11-20 14:01:11 UTC (rev 5680)
+++ trunk/identity/src/resources/draft/simple1-identity-config.xml	2006-11-20 14:12:35 UTC (rev 5681)
@@ -0,0 +1,46 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+  ~ JBoss, a division of Red Hat                                              ~
+  ~ Copyright 2006, Red Hat Middleware, LLC, and individual                   ~
+  ~ contributors as indicated by the @authors tag. See the                    ~
+  ~ copyright.txt in the distribution for a full listing of                   ~
+  ~ individual contributors.                                                  ~
+  ~                                                                           ~
+  ~ This is free software; you can redistribute it and/or modify it           ~
+  ~ under the terms of the GNU Lesser General Public License as               ~
+  ~ published by the Free Software Foundation; either version 2.1 of          ~
+  ~ the License, or (at your option) any later version.                       ~
+  ~                                                                           ~
+  ~ This software is distributed in the hope that it will be useful,          ~
+  ~ but WITHOUT ANY WARRANTY; without even the implied warranty of            ~
+  ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU          ~
+  ~ Lesser General Public License for more details.                           ~
+  ~                                                                           ~
+  ~ You should have received a copy of the GNU Lesser General Public          ~
+  ~ License along with this software; if not, write to the Free               ~
+  ~ Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA        ~
+  ~ 02110-1301 USA, or see the FSF site: http://www.fsf.org.                  ~
+  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~-->
+<identity-configuration>
+   <modules>
+      <module>
+         <!--type used to correctly map in IdentityContext registry-->
+         <type>UserModule</type>
+         <implementation>DB</implementation>
+      </module>
+      <module>
+         <!--type used to correctly map in IdentityContext registry-->
+         <type>RoleModule</type>
+         <implementation>DB</implementation>
+      </module>
+      <module>
+         <!--type used to correctly map in IdentityContext registry-->
+         <type>MembershipModule</type>
+         <implementation>DB</implementation>
+      </module>
+      <module>
+         <!--type used to correctly map in IdentityContext registry-->
+         <type>UserProfileModule</type>
+         <implementation>DB</implementation>
+      </module>
+</identity-configuration>
\ No newline at end of file

Added: trunk/identity/src/resources/draft/simple2-identity-config.xml
===================================================================
--- trunk/identity/src/resources/draft/simple2-identity-config.xml	2006-11-20 14:01:11 UTC (rev 5680)
+++ trunk/identity/src/resources/draft/simple2-identity-config.xml	2006-11-20 14:12:35 UTC (rev 5681)
@@ -0,0 +1,174 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+  ~ JBoss, a division of Red Hat                                              ~
+  ~ Copyright 2006, Red Hat Middleware, LLC, and individual                   ~
+  ~ contributors as indicated by the @authors tag. See the                    ~
+  ~ copyright.txt in the distribution for a full listing of                   ~
+  ~ individual contributors.                                                  ~
+  ~                                                                           ~
+  ~ This is free software; you can redistribute it and/or modify it           ~
+  ~ under the terms of the GNU Lesser General Public License as               ~
+  ~ published by the Free Software Foundation; either version 2.1 of          ~
+  ~ the License, or (at your option) any later version.                       ~
+  ~                                                                           ~
+  ~ This software is distributed in the hope that it will be useful,          ~
+  ~ but WITHOUT ANY WARRANTY; without even the implied warranty of            ~
+  ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU          ~
+  ~ Lesser General Public License for more details.                           ~
+  ~                                                                           ~
+  ~ You should have received a copy of the GNU Lesser General Public          ~
+  ~ License along with this software; if not, write to the Free               ~
+  ~ Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA        ~
+  ~ 02110-1301 USA, or see the FSF site: http://www.fsf.org.                  ~
+  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~-->
+<identity-configuration>
+   <modules>
+      <module>
+         <!--type used to correctly map in IdentityContext registry-->
+         <type>UserModule</type>
+         <implementation>LDAP</implementation>
+      </module>
+      <module>
+         <!--type used to correctly map in IdentityContext registry-->
+         <type>RoleModule</type>
+         <implementation>LDAP</implementation>
+      </module>
+      <module>
+         <!--type used to correctly map in IdentityContext registry-->
+         <type>MembershipModule</type>
+         <implementation>LDAP</implementation>
+      </module>
+      <module>
+         <!--type used to correctly map in IdentityContext registry-->
+         <type>UserProfileModule</type>
+         <implementation>LDAP</implementation>
+      </module>
+
+
+
+      <!--For ldap configuration this is needed additionally to use ldap connection...-->
+      <module>
+         <!--type used to correctly map in IdentityContext registry-->
+         <type>LDAPConnectionContext</type>
+         <implementation>CUSTOM</implementation>
+
+         <!--name of service and class for creating mbean-->
+         <service-name>portal:service=Module,type=LDAPConnectionContext</service-name>
+         <class>org.jboss.portal.identity.ldap.LDAPConnectionContextImp</class>
+         <jndi-name>java:/portal/LDAPConnectionContext</jndi-name>
+
+         <!--set of options that are passed to a class constructor-->
+         <config>
+            <option>
+               <name>host</name>
+               <value>localhost</value>
+            </option>
+            <option>
+               <name>port</name>
+               <value>10389</value>
+            </option>
+            <option>
+               <name>context-factory</name>
+               <value>com.sun.jndi.ldap.LdapCtxFactory</value>
+            </option>
+            <option>
+               <name>admin-dn</name>
+               <value>cn=Directory Manager</value>
+            </option>
+            <option>
+               <name>admin-password</name>
+               <value>password</value>
+            </option>
+            <option>
+               <name>authentication</name>
+               <value>simple</value>
+            </option>
+         </config>
+      </module>
+   </modules>
+
+   <options>
+      <!--Common options section-->
+      <option-group>
+         <group-name>common</group-name>
+         <option>
+            <name>userContainerDN</name>
+            <value>ou=People,dc=testsuite,dc=portal,dc=qa,dc=atl,dc=jboss,dc=com</value>
+         </option>
+         <option>
+            <name>uidAttributeId</name>
+            <value>uid</value>
+         </option>
+         <option>
+            <name>passwordAttributeID</name>
+            <value>userPassword</value>
+         </option>
+         <option>
+            <name>hashAlgorithm</name>
+            <value>MD5</value>
+         </option>
+         <option>
+            <name>hashEncoding</name>
+            <value>hex</value>
+         </option>
+         <option>
+            <name>roleContainerDN</name>
+            <value>ou=Roles,dc=testsuite,dc=portal,dc=qa,dc=atl,dc=jboss,dc=com</value>
+         </option>
+         <option>
+            <name>ridAttributeId</name>
+            <value>cn</value>
+         </option>
+         <option>
+            <name>roleDisplayNameAttributeID</name>
+            <value>cn</value>
+         </option>
+         <option>
+            <name>membershipAttributeID</name>
+            <value>member</value>
+         </option>
+         <option>
+            <name>membershipAttributeIsDN</name>
+            <value>true</value>
+         </option>
+      </option-group>
+      <option-group>
+         <group-name>userCreateAttibutes</group-name>
+         <option>
+            <name>objectClass</name>
+            <value>top</value>
+            <value>uidObject</value>
+            <value>person</value>
+            <value>inetUser</value>
+         </option>
+         <!--Schema requires those to have initial value-->
+         <option>
+            <name>cn</name>
+            <value>none</value>
+         </option>
+         <option>
+            <name>sn</name>
+            <value>none</value>
+         </option>
+      </option-group>
+      <option-group>
+         <group-name>roleCreateAttibutes</group-name>
+         <option>
+            <name>objectClass</name>
+            <value>top</value>
+            <value>groupOfNames</value>
+         </option>
+         <!--Schema requires those to have initial value-->
+         <option>
+            <name>cn</name>
+            <value>none</value>
+         </option>
+         <!--Some directory servers require this attribute to be valid DN-->
+         <!--For safety reasons point to the admin user here-->
+         <option>
+            <name>member</name>
+            <value>uid=dummynonexistinguser,ou=People,dc=jboss,dc=org</value>
+         </option>
+      </option-group>
+   </options>
+</identity-configuration>
\ No newline at end of file




More information about the jboss-svn-commits mailing list