cancel
Showing results for 
Search instead for 
Did you mean: 

Active directory sync not working properly

pete109
Champ in-the-making
Champ in-the-making
I integrated Alfresco server with Active Directory. My AD users can access Alfresco with no problem. But the user information did not sync. The username, lastname and all other information of users from AD is not showing in Alfresco. All my Alfresco users are in Class Users OU in AD. I added following in alfresco-global.properties file:

authentication.chain=passthru1Smiley Tongueassthru,ldap1:ldap
ntlm.authentication.sso.enabled=false
passthru.authentication.allowGuestLogin=false
passthru.authentication.authenticateCIFS=false
passthru.authentication.authenticateFTP=false

passthru.authentication.servers=172.40.203.4
passthru.authentication.domain=CORP
passthru.authentication.useLocalServer=false
passthru.authentication.defaultAdministratorUserNames=Administrator
passthru.authentication.connectTimeout=5000
passthru.authentication.offlineCheckInterval=300
passthru.authentication.protocolOrder=TCPIP,NETBIOS

ldap.authentication.active=false
ldap.authentication.java.naming.security.authentication=simple
ldap.authentication.userNameFormat=%s
ldap.authentication.allowGuestLogin=false
ldap.authentication.java.naming.factory.initial=com.sun.jndi.ldap.LdapCtxFactory
ldap.authentication.java.naming.provider.url=ldap://172.40.203.4:389
ldap.authentication.escapeCommasInBind=false
ldap.authentication.escapeCommasInUid=false

ldap.synchronization.active=true
ldap.synchronization.java.naming.security.principal=CORP\\Administrator
ldap.synchronization.java.naming.security.credentials=########
ldap.synchronization.queryBatchSize=1000
ldap.synchronization.groupDifferentialQuery=(&(objectclass=nogroup)(!(modifyTimestamp<\={0})))
ldap.synchronization.personQuery=(&(objectclass=user)(userAccountControl\:1.2.840.113556.1.4.803\:\=512))
ldap.synchronization.personDifferentialQuery=(&(objectclass=user)(!modifyTimestamp<\={0})))
ldap.synchronization.groupQuery=(objectclass\=group)

ldap.synchronization.groupSearchBase=ou\=Class Users,dc=corp,dc=enterprise,dc=com
ldap.synchronization.userSearchBase=ou\=Class Users,dc=corp,dc=enterprise,dc=com

ldap.synchronization.modifyTimestampAttributeName=modifyTimestamp
ldap.synchronization.timestampFormat=yyyyMMddHHmmss'.0Z'
ldap.synchronization.userIdAttributeName=sAMAccountName
ldap.synchronization.userFirstNameAttributeName=givenName
ldap.synchronization.userLastNameAttributeName=sn
ldap.synchronization.userEmailAttributeName=mail
ldap.synchronization.userOrganizationalIdAttributeName=msExchALObjectVersion
ldap.synchronization.defaultHomeFolderProvider=userHomesHomeFolderProvider
ldap.synchronization.groupIdAttributeName=cn
ldap.synchronization.groupType=Nogroup
ldap.synchronization.personType=user
ldap.synchronization.groupMemberAttributeName=member

synchronization.synchronizeChangesOnly=true

cifs.enabled=false

3 REPLIES 3

mrogers
Star Contributor
Star Contributor
that ldap.synchronization.groupDifferentialQuery looks suspicicious.  

What is it attempting to do?

pete109
Champ in-the-making
Champ in-the-making
I followed a online guide and it says the query will select objects that represent the groups to import that have changed since a certain time.

eswbitto
Confirmed Champ
Confirmed Champ
Try this…


ldap.synchronization.groupDifferentialQuery=(&(objectclass\=group)(!(whenChanged<\={0})))