I have LDAP working for authentication just fine, but I think my problem w/syncronization now lies in how I'm telling it to query LDAP. I can see my principal user hitting the LDAP server. It just feels like I don't quite have the queries right. If anyone would have a look I'd be extremely grateful:I have a very simple LDAP tree:ou=People,dc=mydomain,dc=com — contains users (uid=…)ou=groups,dc=mydomain,dc=com — contains groupsI have the following set in alfresco:
# The query to select all objects that represent the groups to import.
ldap.synchronization.groupQuery=(&(objectclass\=groups)(memberOf\=ou\=groups,dc\=mydomain,dc\=com)(userAccountControl\:1.2.840.113556.1.4.803\:\=512))
# The query to select objects that represent the groups to import that have changed since a certain time.
ldap.synchronization.groupDifferentialQuery=(&(objectclass\=groups)(memberOf\=ou\=groups,dc\=mydomain,dc\=com)(userAccountControl\:1.2.840.113556.1.4.803\:\=512)(!(modifyTimestamp<\={0})))
# The query to select all objects that represent the users to import.
ldap.synchronization.personQuery=(&(objectclass\=People)(memberOf\=ou\=People,dc\=mydomain,dc\=com)(userAccountControl\:1.2.840.113556.1.4.803\:\=512))
# The query to select objects that represent the users to import that have changed since a certain time.
ldap.synchronization.personDifferentialQuery=(&(objectclass\=People)(memberOf\=ou\=People,dc\=mydomain,dc\=com)(userAccountControl\:1.2.840.113556.1.4.803\:\=512)(!(modifyTimestamp<\={0})))I get the following in my startup logs:16:34:30,806 User:System INFO [security.sync.ChainingUserRegistrySynchronizer] Synchronizing users and groups with user registry 'ldap1'
16:34:30,809 User:System INFO [security.sync.ChainingUserRegistrySynchronizer] Retrieving all groups from user registry 'ldap1'
16:34:31,085 User:System INFO [security.sync.ChainingUserRegistrySynchronizer] ldap1 Group Analysis: Commencing batch of 0 entries
16:34:31,086 User:System INFO [security.sync.ChainingUserRegistrySynchronizer] ldap1 Group Analysis: Completed batch of 0 entries
16:34:31,089 User:System INFO [security.sync.ChainingUserRegistrySynchronizer] Retrieving all users from user registry 'ldap1'
16:34:31,102 User:System INFO [security.sync.ChainingUserRegistrySynchronizer] ldap1 User Creation and Association: Commencing batch of 0 entries
16:34:31,109 User:System INFO [security.sync.ChainingUserRegistrySynchronizer] ldap1 User Creation and Association: Completed batch of 0 entries
16:34:31,109 User:System INFO [security.sync.ChainingUserRegistrySynchronizer] Finished synchronizing users and groups with user registry 'ldap1'
16:34:31,109 User:System INFO [security.sync.ChainingUserRegistrySynchronizer] 0 user(s) and 0 group(s) processed
16:34:31,122 INFO [management.subsystems.ChildApplicationContextFactory] Startup of 'Synchronization' subsystem, ID: [Synchronization, default] complete
Thanks,Jamie