It's possible to change the default AD/LDAP sync schedule, e.g.,
# Resync every hour (default is every day at midnight)
synchronization.import.cron=0 0/60 * * * ?
If you have a *huge* user base, don't do once per hour (e.g., I work with a university that has 11k groups and 7+K users, they sync once a day). But for small groups (test LDAP sync, if a full sync finishes in 1-2 min and incremental syncs are 5-20 sec then it's small 🙂 an hour or even less is fine.
You may want to combine with:
synchronization.autoCreatePeopleOnLogin=true
(or set that to false, depending on your requirement). with that true, if you create a person in LDAP and the person hasn't synced yet, if that person tries to log in to alfresco or share, then alfresco will check LDAP if the person exists and (if he does), allow login. I'm not sure if it *syncs* the person. I think it does but I don't control my company's LDAP so can't test :-(. Even if there's no auto-sync on creater after auto login, the sync could still happen in less than 24 hours if you set a more frequent sync schedule.