cancel
Showing results for 
Search instead for 
Did you mean: 

LDAP group memberships not synchronized (v5.0.a)

jack_chuong
Star Contributor
Star Contributor
Hi all,
I'm using Alfresco 5.0.a Community on Centos 6.4 64 bit, my Active Directory server : Windows Server 2008 R2
I have a problem with the LDAP integration configuration - Group memberships are not synchronized - all groups are shown empty.

This is my alfresco-global.properties configuration :


### Active Directory
authentication.chain=alfinst:alfrescoNtlm,ldap1:ldap-ad

ntlm.authentication.sso.enabled=false

ldap.authentication.allowGuestLogin=false
ldap.authentication.userNameFormat=%s
ldap.authentication.java.naming.provider.url=ldap://ad.mydomain.com:389
ldap.authentication.defaultAdministratorUserNames=jack.chuong
ldap.synchronization.java.naming.security.principal=CN=Jack Chuong,OU=Users,OU=ICT,OU=SGN,OU=Central Management,DC=mydomain,DC=com
ldap.synchronization.java.naming.security.credentials=*******
ldap.synchronization.userSearchBase=OU\=Central Management,DC\=mydomain,DC\=com
ldap.synchronization.userIdAttributeName=sAMAccountName
ldap.synchronization.userFirstNameAttributeName=givenName
ldap.synchronization.userLastNameAttributeName=sn
ldap.synchronization.userEmailAttributeName=mail
ldap.synchronization.personType=(&(sAMAccountName={0})(objectClass=User)(!(objectClass=Computer)))
ldap.synchronization.active=true
# Sync
synchronization.synchronizeChangesOnly=false
synchronization.allowDeletions=true

ldap.synchronization.groupSearchBase=OU\=Central Management,DC=\mydomain,DC\=com
ldap.synchronization.groupIdAttributeName=sAMAccountName
ldap.synchronization.groupDisplayNameAttributeName=cn
ldap.synchronization.groupMemberAttributeName=member
ldap.synchronization.groupType=group
ldap.synchronization.groupMemberSearch=(|(objectClass=user)(objectClass=group))


The error we get on startup of Alfresco 5.0.a is:
2014-10-21 14:30:06,301 WARN [sync.ldap.LDAPUserRegistry] [DefaultScheduler_Worker-6] Failed to resolve member of group 'it-sgn@mydomain.com' with distinguished name: CN=Jack Chuong,OU=Users,OU=ICT,OU=SGN,OU=Central Management,DC=mydomain,DC=com

Domain users and groups are synced from AD to Alfresco, domain users can login to Alfresco but I can't set permission on a shared folder to groups because group memberships are empty.
4 REPLIES 4

jack_chuong
Star Contributor
Star Contributor
Hi all,
It's solved.
This configuration works fine:

### Active Directory
authentication.chain=alfinst:alfrescoNtlm,ldap1:ldap-ad

ntlm.authentication.sso.enabled=false

ldap.authentication.allowGuestLogin=false
ldap.authentication.userNameFormat=%s
ldap.authentication.java.naming.provider.url=ldap://ad.mydomain.com:389
ldap.authentication.defaultAdministratorUserNames=Administrator
ldap.synchronization.java.naming.security.principal=jack.chuong@mydomain.com
ldap.synchronization.java.naming.security.credentials=*******
ldap.synchronization.active=true

#user
ldap.synchronization.userSearchBase=OU\=Central Management,DC\=mydomain,DC\=com
ldap.synchronization.userIdAttributeName=sAMAccountName
ldap.synchronization.userFirstNameAttributeName=givenName
ldap.synchronization.userLastNameAttributeName=sn
ldap.synchronization.userEmailAttributeName=mail

#group
ldap.synchronization.groupSearchBase=OU\=Groups,OU\=Central Management,DC\=mydomain,DC\=com

# Sync
synchronization.synchronizeChangesOnly=false
synchronization.allowDeletions=true
synchronization.syncWhenMissingPeopleLogIn=true
synchronization.syncOnStartup=true
synchronization.import.cron=0 */30 * * * ?
ldap.synchronization.enableProgressEstimation=true

luartech
Champ in-the-making
Champ in-the-making

Great setup. Simple and efficient. It helped me solve my own AD and site issues. I even added a variant of admin and guest user accounts to manage and keep in separate OUs.

THanks!

can you send me a screenshot with your ldap groups and users structure ? 

ilyass
Champ in-the-making
Champ in-the-making

salut fatma,

j'ai des problèmes pour synchroniser mes groupes ldap avec leurs utilisateurs, j'ai essayé plusieurs configurations mais malheureusement ça ne marche pas pour moi.

y'a t'il une structure spécifique sur laquelle je dois adapter mon AD pour la faire fonctionner? ou une configuration à faire?

je m'explique encore plus: j'arrive bien à connecter mon AD à mon alfresco mais c'est la relation entre utilisateurs et groupes AD que je ne trouve pas sur Alfresco après synchronisation!!

Merci bien