[portal-commits] JBoss Portal SVN: r5844 - trunk/identity/src/resources/test/config

portal-commits at lists.jboss.org portal-commits at lists.jboss.org
Wed Dec 13 10:52:22 EST 2006


Author: bdaw
Date: 2006-12-13 10:52:20 -0500 (Wed, 13 Dec 2006)
New Revision: 5844

Added:
   trunk/identity/src/resources/test/config/standardidentity-config.xml
Log:
missing file in previous commits

Added: trunk/identity/src/resources/test/config/standardidentity-config.xml
===================================================================
--- trunk/identity/src/resources/test/config/standardidentity-config.xml	2006-12-13 15:51:20 UTC (rev 5843)
+++ trunk/identity/src/resources/test/config/standardidentity-config.xml	2006-12-13 15:52:20 UTC (rev 5844)
@@ -0,0 +1,479 @@
+<?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>
+   <datasources>
+      <datasource>
+         <name>LDAP</name>
+         <!--name of service and class for creating mbean-->
+         <service-name>portal:service=Module,type=LDAPConnectionContext</service-name>
+         <class>org.jboss.portal.identity2.ldap.LDAPConnectionContext</class>
+         <config>
+            <option>
+               <name>host</name>
+               <value>jboss.com</value>
+            </option>
+            <option>
+               <name>port</name>
+               <value>389</value>
+            </option>
+            <option>
+               <name>contextFactory</name>
+               <value>com.sun.jndi.ldap.LdapCtxFactory</value>
+            </option>
+            <option>
+               <name>adminDN</name>
+               <value>cn=Directory Manager</value>
+            </option>
+            <option>
+               <name>adminPassword</name>
+               <value>password</value>
+            </option>
+            <option>
+               <name>jndiName</name>
+               <value>java:/portal/LDAPConnectionContext</value>
+            </option>
+         </config>
+      </datasource>
+      <datasource>
+         <name>DB</name>
+         <service-name>portal:service=Hibernate</service-name>
+         <class>org.jboss.portal.identity2.experimental.db.IdentitySessionFactoryBinder</class>
+         <config>
+            <option>
+               <name>doChecking</name>
+               <value>true</value>
+            </option>
+            <option>
+               <name>configLocation</name>
+               <value>hibernate-single.cfg.xml</value>
+            </option>
+            <!--<option>
+               <name>setupLocation</name>
+               <value>conf/hibernate/user/setup.txt</value>
+            </option>-->
+            <option>
+               <name>jNDIName</name>
+               <value>java:/portal/UserSessionFactory</value>
+            </option>
+            <option>
+               <name>profileConfigFile</name>
+               <value>profile-config.xml</value>
+            </option>
+            <option>
+               <name>mappingTemplateFile</name>
+               <value>domain-template.hbm.xml</value>
+            </option>
+            <option>
+               <name>mappingOutputFile</name>
+               <value>domain-identity.hbm.xml</value>
+            </option>
+            <option>
+               <name>mappingPattern</name>
+               <value><![CDATA[<property name="@name@" column="@column@" type="java.lang.String" update="true" insert="true" unique="false"/>]]></value>
+            </option>
+         </config>
+      </datasource>
+   </datasources>
+   <modules>
+      <module>
+         <!--type used to correctly map in IdentityContext registry-->
+         <type>User</type>
+         <implementation>DB</implementation>
+
+         <!--name of service and class for creating mbean-->
+         <service-name>portal:service=Module,type=User</service-name>
+         <class>org.jboss.portal.identity2.db.HibernateUserModuleImpl</class>
+         <jndi-name>java:/portal/UserModule</jndi-name>
+
+         <!--set of options that are passed to a class constructor-->
+         <config>
+            <option>
+               <name>sessionFactoryJNDIName</name>
+               <value>java:/portal/IdentitySessionFactory</value>
+            </option>
+            <option>
+               <name>jndiName</name>
+               <value>java:/portal/UserModule</value>
+            </option>
+         </config>
+      </module>
+
+      <module>
+         <!--type used to correctly map in IdentityContext registry-->
+         <type>Role</type>
+         <implementation>DB</implementation>
+
+         <!--name of service and class for creating mbean-->
+         <service-name>portal:service=Module,type=Role</service-name>
+         <class>org.jboss.portal.identity2.db.HibernateRoleModuleImpl</class>
+         <jndi-name>java:/portal/RoleModule</jndi-name>
+
+         <!--set of options that are passed to a class constructor-->
+         <config>
+            <option>
+               <name>sessionFactoryJNDIName</name>
+               <value>java:/portal/IdentitySessionFactory</value>
+            </option>
+            <option>
+               <name>jndiName</name>
+               <value>java:/portal/RoleModule</value>
+            </option>
+         </config>
+      </module>
+
+      <module>
+         <!--type used to correctly map in IdentityContext registry-->
+         <type>Membership</type>
+         <implementation>DB</implementation>
+
+         <!--name of service and class for creating mbean-->
+         <service-name>portal:service=Module,type=Membership</service-name>
+         <class>org.jboss.portal.identity2.db.HibernateMembershipModuleImpl</class>
+         <jndi-name>java:/portal/MembershipModule</jndi-name>
+
+         <!--set of options that are passed to a class constructor-->
+         <config>
+            <option>
+               <name>sessionFactoryJNDIName</name>
+               <value>java:/portal/IdentitySessionFactory</value>
+            </option>
+            <option>
+               <name>jndiName</name>
+               <value>java:/portal/MembershipModule</value>
+            </option>
+         </config>
+      </module>
+
+      <module>
+         <!--type used to correctly map in IdentityContext registry-->
+         <type>UserProfile</type>
+         <implementation>DB</implementation>
+
+         <!--name of service and class for creating mbean-->
+         <service-name>portal:service=Module,type=UserProfile</service-name>
+         <class>org.jboss.portal.identity2.db.HibernateUserProfileModuleImpl</class>
+         <jndi-name>java:/portal/UserProfileModule</jndi-name>
+
+         <!--set of options that are passed to a class constructor-->
+         <config>
+            <option>
+               <name>sessionFactoryJNDIName</name>
+               <value>java:/portal/IdentitySessionFactory</value>
+            </option>
+            <option>
+               <name>jndiName</name>
+               <value>java:/portal/UserProfileModule</value>
+            </option>
+         </config>
+      </module>
+
+      <!--for ldap modules...-->
+      <module>
+         <!--type used to correctly map in IdentityContext registry-->
+         <type>User</type>
+         <implementation>LDAP</implementation>
+
+         <!--name of service and class for creating mbean-->
+         <service-name>portal:service=Module,type=User</service-name>
+         <class>org.jboss.portal.identity2.ldap.LDAPUserModuleImpl</class>
+         <jndi-name>java:/portal/UserModule</jndi-name>
+
+         <!--set of options that are passed to a class constructor-->
+         <config>
+            <option>
+               <name>jndiName</name>
+               <value>java:/portal/UserModule</value>
+            </option>
+            <option>
+               <name>connectionJNDIName</name>
+               <value>java:/portal/LDAPConnectionContext</value>
+            </option>
+         </config>    
+      </module>
+
+      <module>
+         <!--type used to correctly map in IdentityContext registry-->
+         <type>Role</type>
+         <implementation>LDAP</implementation>
+
+         <!--name of service and class for creating mbean-->
+         <service-name>portal:service=Module,type=Role</service-name>
+         <class>org.jboss.portal.identity2.ldap.LDAPRoleModuleImpl</class>
+         <jndi-name>java:/portal/RoleModule</jndi-name>
+
+         <!--set of options that are passed to a class constructor-->
+         <config>
+            <option>
+               <name>jndiName</name>
+               <value>java:/portal/RoleModule</value>
+            </option>
+            <option>
+               <name>connectionJNDIName</name>
+               <value>java:/portal/LDAPConnectionContext</value>
+            </option>
+         </config>
+      </module>
+
+      <module>
+         <!--type used to correctly map in IdentityContext registry-->
+         <type>Membership</type>
+         <implementation>LDAP</implementation>
+
+         <!--name of service and class for creating mbean-->
+         <service-name>portal:service=Module,type=Membership</service-name>
+         <class>org.jboss.portal.identity2.ldap.LDAPStaticGroupMembershipModuleImpl</class>
+         <jndi-name>java:/portal/MembershipModule</jndi-name>
+
+         <!--set of options that are passed to a class constructor-->
+         <config>
+            <option>
+               <name>jndiName</name>
+               <value>java:/portal/MembershipModule</value>
+            </option>
+            <option>
+               <name>connectionJNDIName</name>
+               <value>java:/portal/LDAPConnectionContext</value>
+            </option>
+         </config>
+      </module>
+
+      <module>
+         <!--type used to correctly map in IdentityContext registry-->
+         <type>UserProfile</type>
+         <implementation>LDAP</implementation>
+
+         <!--name of service and class for creating mbean-->
+         <service-name>portal:service=Module,type=UserProfile</service-name>
+         <class>org.jboss.portal.identity2.ldap.LDAPUserProfileModuleImpl</class>
+         <jndi-name>java:/portal/UserProfileModule</jndi-name>
+
+         <!--set of options that are passed to a class constructor-->
+         <config>
+            <!--<option>
+               <name>LDAPConnectionJNDIName</name>
+               <value>java:/portal/UserSessionFactory</value>
+            </option>-->
+            <!--Hibernate mappings for db level store (dynamic properties not mapped as ldap attributes)-->
+            <!--<option>
+               <name>SessionFactoryJNDIName</name>
+               <value>java:/portal/PropertyStoreSessionFactory</value>
+            </option>
+            <option>
+               <name>profileMappings</name>
+               <value>ldap-profile.xml</value>
+            </option>-->
+            <option>
+               <name>jndiName</name>
+               <value>java:/portal/UserProfileModule</value>
+            </option>
+            <option>
+               <name>connectionJNDIName</name>
+               <value>java:/portal/LDAPConnectionContext</value>
+            </option>
+         </config>
+      </module>
+
+   </modules>
+
+   <options>
+      <!--Common options section-->
+      <option-group>
+         <group-name>common</group-name>
+         <option>
+            <name>userContainerDN</name>
+            <value>ou=People,dc=example,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=example,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>
+      <option-group>
+         <group-name>userProfileMappings</group-name>
+         <option>
+            <name>portal.user.name.given</name>
+            <!--inetOrgPerson-->
+            <value>givenName</value>
+         </option>
+         <!--<option>
+               <name>portal.user.name.family</name>
+               <value></value>
+            </option>
+            <option>
+               <name>portal.user.location</name>
+               <value></value>
+            </option>-->
+         <option>
+            <name>portal.user.occupation</name>
+            <!--inetOrgPerson-->
+            <value>title</value>
+         </option>
+         <!--<option>
+               <name>portal.user.extra</name>
+               <value></value>
+            </option>-->
+         <option>
+            <name>portal.user.signature</name>
+            <!--newPilotPerson-->
+            <value>personalSignature</value>
+         </option>
+         <!--<option>
+               <name>portal.user.interests</name>
+               <value></value>
+            </option>-->
+         <option>
+            <name>portal.user.locale</name>
+            <!--inetOrgPerson-->
+            <value>localityName</value><!--or prefferedLanguage-->
+         </option>
+         <!--<option>
+               <name>portal.user.im.icq</name>
+               <value></value>
+            </option>
+            <option>
+               <name>portal.user.im.aim</name>
+               <value></value>
+            </option>
+            <option>
+               <name>portal.user.im.msnm</name>
+               <value></value>
+            </option>
+            <option>
+               <name>portal.user.im.yim</name>
+               <value></value>
+            </option>
+            <option>
+               <name>portal.user.im.skype</name>
+               <value></value>
+            </option>-->
+         <option>
+            <name>portal.user.homepage</name>
+            <!--inetOrgPerson-->
+            <value>seeAlso</value>
+         </option>
+         <!--<option>
+               <name>portal.user.time-zone-offset</name>
+               <value></value>
+            </option>
+            <option>
+               <name>portal.user.theme</name>
+               <value></value>
+            </option>
+            <option>
+               <name>portal.user.security.question</name>
+               <value></value>
+            </option>
+            <option>
+               <name>portal.user.security.answer</name>
+               <value></value>
+            </option>
+            <option>
+               <name>portal.user.email.fake</name>
+               <value></value>
+            </option>
+            <option>
+               <name>portal.user.email.view-real</name>
+               <value></value>
+            </option>
+            <option>
+               <name>portal.user.last-login-date</name>
+               <value></value>
+            </option>
+            <option>
+               <name>portal.user.registration-date</name>
+               <value></value>
+            </option>-->
+      </option-group>
+   </options>
+</identity-configuration>
\ No newline at end of file




More information about the portal-commits mailing list