AnsweredAssumed Answered

LDAP Authentication (multiple contexts/domain controllers)

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

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">
               <value>ldap://svr-dc1</value>
            </entry>

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="org.alfresco.repo.security.authentication.ldap.LDAPAuthenticationComponentImpl">
        <property name="LDAPInitialDirContextFactory">
            <ref bean="ldapInitialDirContextFactory"/>
        </property>
        <property name="userNameFormat">
            <value>cn=%s,OU=IT - Information Technology,OU=User Accounts,dc=**,dc=**,dc=**</value>
        </property>

    </bean>

How can I add another OU to check?

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

Many thanks,

Tim

Outcomes