Alfresco Community - LDAP synchronization & Cron expression

cancel
Showing results for 
Search instead for 
Did you mean: 
Active Member II

Alfresco Community - LDAP synchronization & Cron expression

Jump to solution

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 Solution

Accepted Solutions
Active Member II

Re: Alfresco Community - LDAP synchronization & Cron expression

Jump to solution

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 solution in original post

4 Replies
Community Manager
Community Manager

Re: Alfresco Community - LDAP synchronization & Cron expression

Jump to solution

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!
Master

Re: Alfresco Community - LDAP synchronization & Cron expression

Jump to solution

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.

Active Member II

Re: Alfresco Community - LDAP synchronization & Cron expression

Jump to solution

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

 

Active Member II

Re: Alfresco Community - LDAP synchronization & Cron expression

Jump to solution

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 solution in original post