cancel
Showing results for 
Search instead for 
Did you mean: 

LDAP Authentication (multiple contexts/domain controllers)

timsiddle
Champ in-the-making
Champ in-the-making
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
2 REPLIES 2

braulio_moura
Champ in-the-making
Champ in-the-making
Hi timsiddle !!!

I'm facing the same problem: I have to configure Alfresco to authenticate to multiple ADs…

have you accomplished this?? Can you help me with this configuration???

Thanx!!!

timsiddle
Champ in-the-making
Champ in-the-making
I've had some other projects on the go but I plan to get back to this in the next few days - I'll keep you up to date on my progress.