AnsweredAssumed Answered

LDAP Authentication (multiple contexts/domain controllers)

Question asked by timsiddle on Apr 18, 2008
Latest reply on Jun 10, 2008 by timsiddle

I have authenticated successfully against ActiveDirectory altering chaining-authentication-context.xml and ldap-authentication-context.xml. However, I have only managed to use one domain controller as below in ldap-authentication-context.xml

            <!– The url to the LDAP server –>
            <entry key="java.naming.provider.url">

Question 1 is - how do I use multiple servers?

Secondly. in chaining-authentication-context.xml I have managed to authenticate against one context. Unfortunately our staff are spread across multiple contexts.

    <bean id="authenticationComponentImplLDAP" class="">
        <property name="LDAPInitialDirContextFactory">
            <ref bean="ldapInitialDirContextFactory"/>
        <property name="userNameFormat">
            <value>cn=%s,OU=IT - Information Technology,OU=User Accounts,dc=**,dc=**,dc=**</value>


How can I add another OU to check?

(I have asterixed (*) some parts of the file for obvious reasons).

Many thanks,