cancel
Showing results for 
Search instead for 
Did you mean: 

Questions about LDAP and Alfresco

eswbitto
Confirmed Champ
Confirmed Champ
I am trying to find some documentation on a couple of questions that I have about how Alfresco interacts with AD.


When a user is created or deleted in Active Directory does Alfresco see those changes or does a restart need to be done in order for a re-sync to happen?

Lets say initially I used the whole forest (of users and groups) as a sync. Now I want to go back and filter out not such a broad search base. Now I know that all those users and groups would be stored in Postgresql when I filter my search base would those "other users and groups" still be in the database or would they be deleted and only the new search base be present?


Thanks Guys for the awesome software!
2 REPLIES 2

bopolissimus
Confirmed Champ
Confirmed Champ
regarding sync: alfresco has a default sync schedule.  It'll sync against LDAP once a day.  You can change the sync schedule.  Below syncs at midnight.  I have other installations where the sync is every hour.  If the LDAP tree is large, you can do a differential sync. If it's small, even a full sync every hour isn't onerous.  If it's very large (e.g., several thousand) then once a day with sync on logon-attempt is an option.

synchronization.import.cron=0 0 0 * * ?

when a user is created or deleted in AD, alfresco will see those changes at sync (depends on your sync schedule) and also on whether your alfresco is configured to autocreate people on logon.  so depending on your sync schedule, it may take up to 24 hours (if you do the change at 23:59 🙂 for the change to be seen by alfresco.  but as noted above, other ldap and sync settings can modify this behavior.

regarding going back and modifying your search base or filters, if using the community edition you'd need to restart alfresco when you make those changes so that alfresco will pick up the changes.  My understanding is that you can make those changes online in Enterprise edition, not restart needed (but I don't have EE, just going by the documentation).

regarding changing the filter and what happens to other users and groups that are no longer in the filter, you can configure the behavior by setting synchronization.allowDeletions.  set it to true to delete users and groups that no longer match your person and group queries (filters).  false otherwise.

synchronization.allowDeletions=true

eswbitto
Confirmed Champ
Confirmed Champ
@bopolissimus
The once a day sync is fine for our society. We only have like 300+ entries so it wouldn't take no time to sync up. Thanks for that info and no I turned off the On-demand user creation. I only want AD users to be able to log in without creating a "new" user.

On the filtering part…

Thank you! I will try that out and see how it goes!