Hi,
I need to establish a LDAP authentification but when I want my AD groups, i don't recover them but for users it's OK.
I think my problem is the space in my line, see it :
ldap.synchronization.groupSearchBase=OU=Groupes d'accès,OU=RAPIDO,OU=CCAR,OU=RAPIDO_VDL, DC=rapido53,DC=com
How can I replace this space ?
Thank a lot
Escape the space with a backslash?
Yes i tried :
ldap.synchronization.groupSearchBase=OU=Groupes \d'accès,OU=RAPIDO,OU=CCAR,OU=RAPIDO_VDL, DC=rapido53,DC=com
OR
ldap.synchronization.groupSearchBase=OU=Groupes\d'accès,OU=RAPIDO,OU=CCAR,OU=RAPIDO_VDL, DC=rapido53,DC=com
escape character is a prefix notation. ' ' should be used as '\ '
So OU=Groupes\d'accès is good ?
did my ' un d'accès can be a problem too ?
I just try with an other OU
ldap.synchronization.groupSearchBase=OU=Alfresco,DC=rapido53,DC=com
With one group but when I go in admin tools et browse group, i don't have group....
This is all line about authentification in my file :
authentication.chain=alfinst:alfrescoNtlm,ldap1:ldap
ldap.authentification.active=true
ntlm.authentication.sso.enabled=false
ldap.synchronization.active=false
ldap.authentication.userNameFormat=%s@domain.com
ldap.authentication.java.naming.provider.url=ldap://SRVDC01.domain.com
ldap.synchronization.userSearchBase=ou=User,dc=domain,dc=com
ldap.synchronization.groupSearchBase=ou=Alfresco,dc=domain,dc=com
ldap.synchronization.java.naming.security.principal=test@domain.com
ldap.synchronization.java.naming.security.credentials=SECRET
ldap.authentication.allowGuestLogin=false
ldap.authentication.defaultAdministratorUserNames=Administrator,alfresco
ldap.synchronization.groupQuery=(objectclass\=group)
ldap.synchronization.groupDifferentialQuery=(&(objectclass\=group)(!(whenChanged<\={0})))
Hi:
Try adding this logger in custom-log4j.properties in extension directory to debug your ldap sync
log4j.logger.org.alfresco.repo.security.sync=debug
And then resync. Some tips are here:
https://www.zylk.net/en/web-2-0/blog/-/blogs/how-to-sync-ldap-users-and-groups-in-alfresco-ecm
I also recommend you to check the ldap queries with Apache Directory Studio, for example.
Kind regards.
--C.
I will be honest I begin to be lost
I add your line but i really don't understand if i got all my user (they just need 1 connection to appear in my user list) why group don't appear in my alfresco group ? did I need to "connect" the group to appear or my line is not good ?
I install Apache directory studio and it work, i can connect to my AD, How it can help me ?
Hi Mathis:
- With the debug option, you can see all the details of the ldap sync in Alfresco. It is specially useful when getting problems with a given path or search base, for users and/or groups.
- With Apache Directory Studio you may check and debug the ldap queries for groups and users. So you can see the results that they should be obtained in group syncronization. If ldap query in Apache Directory Studio is not giving the group that you mention, it never will be synced in Alfresco. Browsing with Apache Directory Studio, you can check too the full config of user and group objects of your LDAP/AD.
Kind regards.
--C.
Ok so know it work with a classic path but when i use path with ou=Groupes d'accès, it didn't work cause of the space
Ask for and offer help to other Alfresco Content Services Users and members of the Alfresco team.
Related links:
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.