cancel
Showing results for 
Search instead for 
Did you mean: 

Alfresco Community - LDAP synchronization & Cron expression

lascaux_2774
Confirmed Champ
Confirmed Champ

Dear ACS members

I first hope that you are all safe with your family !

I have been an alfresco user & admin since many years and I'm still facing the same issue:

I'm not able to have the synchronization of my LDAP synchronization working out of the initial stsart of the plateform

I've tried many different cron expression with no success

I have 2 ldap configurations defined (for 2 differents synchronisation purpose)

for both of them, the synchronization are the start of alfresco is working but the synchronization.import.cron job is never working

here are the different tests I made

ldap.synchronization.active=true
synchronization.syncOnStartup=true
synchronization.import.cron=0 */10 * * * ?
synchronization.import.cron=0 0/5 * * * ?
synchronization.import.cron=0 0/10 * 1/1 * ? *
synchronization.import.cron=0 */10 * * * ?
synchronization.import.cron=0 0/10 0-23 ? * MON-SUN

(same for both ldap-authentication.properties)

can you please explain me how to have the sync running every 10 min ?

Thanks

Sylvain

1 ACCEPTED ANSWER

the answer is "I should remove all lines with "synchronization.xyz" and set only 1 set of settings in the "alfresco-global.properties"

thanks @afaust, it's working now !!!

View answer in original post

4 REPLIES 4

EddieMay
World-Class Innovator
World-Class Innovator

Hi @lascaux_2774,

Thanks for your kind words - we all hope that you, your family, your friends and your neighbourhood are safe and well too.

I'll ask our engineers and hopefully we can help you soon.

Stay safe,

Digital Community Manager, Alfresco Software.
Problem solved? Click Accept as Solution!

afaust
Legendary Innovator
Legendary Innovator

The "synchronization.xyz" properties do not belong in the ldap-authentication.properties - these should rather be set in the synchronization subsystem properties files, or simply via alfresco-global.properties. In the ldap-authentication.properties they will not have any effect. Only the "ldap.synchronization.xyz" properties are part of ldap-authentication.properties.

Dear @afaust 

not sur to fully get it

do you mean that in each ldap-authentication.properties, I should prefix all "synchronization.xyz" by "ldap." ("ldap.synchronization.xyz")

or

do you mean that in each ldap-authentication.properties, I should remove all lines with "synchronization.xyz"  and set only set of settings in the alfresco-global.properties

ex.

# Sync
synchronization.synchronizeChangesOnly=false
synchronization.allowDeletions=true
synchronization.syncOnStartup=true
synchronization.autoCreatePeopleOnLogin=false
synchronization.syncWhenMissingPeopleLogIn=true
# Synchron every 10 min
#synchronization.import.cron=0 */10 * * * ?
#synchronization.import.cron=0 0/5 * * * ?#synchronization.import.cron=0 0/10 * 1/1 * ? *
#synchronization.import.cron=0 */10 * * * ?
synchronization.import.cron=0 0/10 0-23 ? * MON-SUN

Thanks for  your help

the answer is "I should remove all lines with "synchronization.xyz" and set only 1 set of settings in the "alfresco-global.properties"

thanks @afaust, it's working now !!!