0 Replies Latest reply on Jun 16, 2010 10:01 AM by Ramendra Shekhawat

    How to cofigure 2 Independent LDAP integration with 1 JBOSS portal instance

    Ramendra Shekhawat Newbie

      In my jboss portal application I have 1 JBOSS application instance which is integrated with 2 LDAP setup with different- different user schema. I am able to configure one LDAP within jboss but not both the LDAPs.

       

      My ldap_identity-config.xml looks like this after entering both the ldaps-

      <identity-configuration>

         <datasources>

            <datasource>

               <name>LDAP</name>

               <config>

                  <option>

                     <name>host</name>

                     <value>ldap.mydomain.com</value>

                  </option>

                  <option>

                     <name>port</name>

                     <value>5389</value>

                  </option>

                  <option>

                     <name>adminDN</name>

                     <value>cn=Directory Manager</value>

                  </option>

                  <option>

                     <name>adminPassword</name>

                     <value>password</value>

                  </option>

                  <!--<option>

                     <name>protocol</name>

                     <value>ssl</value>

                  </option>-->

               </config>

            </datasource>

            <datasource>

               <name>LDAP1</name>

               <config>

                  <option>

                     <name>host</name>

                     <value>ldap.mydomain.com</value>

                  </option>

                  <option>

                     <name>port</name>

                     <value>6389</value>

                  </option>

                  <option>

                     <name>adminDN</name>

                     <value>cn=Directory Manager</value>

                  </option>

                  <option>

                     <name>adminPassword</name>

                     <value>password</value>

                  </option>

                  <!--<option>

                     <name>protocol</name>

                     <value>ssl</value>

                  </option>-->

               </config>

            </datasource>

         </datasources>

       

      Error Log:

      --- MBeans waiting for other MBeans ---

      ObjectName: portal:service=Module,type=IdentityServiceController

      State: FAILED

      Reason: org.jboss.portal.identity.IdentityException: Cannot initiate identity modules:

       

       

      Please find the atatched zip file for complete configuration setting that is done in ldap_identity-config.xml and standardidentity-config.xml.

       

      Now anyone has any idea how to configure both the LDAP in single JBOSS instance for authentication as both the LDAPs having different – different users.

       

      Any help in this regard is appreciated.

       

      -- Ramendra