Version 3

    Sample content of identity-config.xml file in JBoss Portal 2.6 for connecting with RHDS in QA

     

    <identity-configuration>
       <datasources>
          <datasource>
             <name>LDAP</name>
             <config>
                <option>
                   <name>host</name>
                   <value>dev39.qa.atl.jboss.com</value>
                </option>
                <option>
                   <name>port</name>
                   <value>10389</value>
                </option>
                <option>
                   <name>adminDN</name>
                   <value>cn=Directory Manager</value>
                </option>
                <option>
                   <name>adminPassword</name>
                   <value>qpq123qpq</value>
                </option>
                <!--<option>
                   <name>protocol</name>
                   <value>ssl</value>
                </option>-->
             </config>
          </datasource>
       </datasources>
       <modules>
          <module>
             <!--type used to correctly map in IdentityContext registry-->
             <type>User</type>
             <implementation>LDAP</implementation>
             <config></config>
          </module>
          <module>
             <type>Role</type>
             <implementation>LDAP</implementation>
             <config></config>
          </module>
          <module>
             <type>Membership</type>
             <implementation>LDAP</implementation>
             <config></config>
          </module>
          <module>
             <type>UserProfile</type>
             <implementation>DELEGATING</implementation>
             <config>
                <option>
                   <name>ldapModuleJNDIName</name>
                   <value>java:/portal/LDAPUserProfileModule</value>
                </option>
             </config>
          </module>
          <module>
             <type>DBDelegateUserProfile</type>
             <implementation>DB</implementation>
             <config>
                <option>
                   <name>randomSynchronizePassword</name>
                   <value>true</value>
                </option>
             </config>
          </module>
          <module>
             <type>LDAPDelegateUserProfile</type>
             <implementation>LDAP</implementation>
             <config></config>
          </module>
       </modules>
    
       <options>
          <option-group>
             <group-name>common</group-name>
             <option>
                <name>userCtxDN</name>
                <value>ou=People,o=test,dc=portal,dc=qa,dc=atl,dc=jboss,dc=com</value>
             </option>
             <option>
                <name>roleCtxDN</name>
                <value>ou=Roles,o=test,dc=portal,dc=qa,dc=atl,dc=jboss,dc=com</value>
             </option>
          </option-group>
          <option-group>
             <group-name>userCreateAttibutes</group-name>
             <option>
                <name>objectClass</name>
                <!--This objectclasses should work with Red Hat Directory-->
                <value>top</value>
                <value>person</value>
                <value>inetOrgPerson</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>
             <!--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=admin,ou=People,o=test,dc=portal,dc=qa,dc=atl,dc=jboss,dc=com</value>
             </option>
          </option-group>
       </options>
    </identity-configuration>