cancel
Showing results for 
Search instead for 
Did you mean: 

Linking two Active directories through LDAP to Alfresco share

juilee
Champ in-the-making
Champ in-the-making
Hi,

I am trying to link two active directories to Alfresco through LDAP.
I have added the following line to alfresco-global.properties
authentication.chain=alfrescoNtlm1:alfrescoNtlm,ldap-ad1:ldap-ad,ldap-ad2:ldap-ad

I have made two sub-folders ldap-ad1 and ldap-ad2 in the folder C:\Alfresco\tomcat\webapps\alfresco\WEB-INF\classes\alfresco\subsystems\Authentication\ldap-ad. And placed ldap-ad-authentication.properties file in both these sub-folders. Corresponding configuration for both ADs have been added to these files.
When I add these Active directory setting individually to the alfresco-global.properties, they work and the AD gets synced to Alfresco.
But the chaining doesn't work and only the users from one of the AD are seen. Both the server names, user name and passwords are correct as they work individually.

I have added these lines to the default-synchronization.properties file to sync the AD at regular intervals:
synchronization.synchronizeChangesOnly=false
synchronization.import.cron=0 0/1 * * * ?

Can anyone please advise as what might be wrong?


Thanks !!
3 REPLIES 3

muralidharand
Star Contributor
Star Contributor
Hi,
I would recommend first we will look at the alfresco.log.
When you change the information in the second ldap only(no changes in first ldap), does LDAP 2 is getting synced with alfresco?
Once you modify the values in the AD, can you please restart the alfresco synchronization subsystem, to check it out immediately?
http://www.codingfreaks.net/2013/04/alfresco-restart-sub-system-by-using.html

Thanks,
Murali

juilee
Champ in-the-making
Champ in-the-making
Hi muralidharand, Thanks for the reply. The folders ldap-ad1 and ldap-ad2 could not be found. Hence the error. Placing the Authentication folder under subsytems folder in /shared/classes/alfresco/extension/ worked.

muralidharand
Star Contributor
Star Contributor
Hi Juilee,
In our organisation, we have placed the authentication subsystem files under the alfresco repository's extension as shown in the attachment.


To know more about, Alfresco Repository subsystem and its extension paths, refer the below url.
http://www.codingfreaks.net/2012/12/extend-alfresco-subsystem.html