Directory accounts lose access when someone leaves the directory
- github
- github/openchronology/timeline-app
- commit
- main
- github/athanclark
Every LDAP_CHECK_MINUTES (hourly by default; 0 turns it off) the server looks up each account with an ldap identity with the service account, by objectGUID, entryUUID or DN, under LDAP_BASE_DN and in LDAP_REQUIRED_GROUP. One whose entry is gone, out of the group or disabled (AD userAccountControl) has its sessions ended and API keys revoked through AccountSecurity.endAccess, once (oc_identities.left_at), logged and recorded in oc_admin_audit as directory-left. An unreachable directory, a failed bind or search, or a run that would end access for more than half of the accounts (and more than five) changes nothing and is logged. One check per interval across processes, under an advisory lock. Closes #408 Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_011fFY8eruEi1xAkkMBni13B https://github.com/openchronology/timeline-app/commit/bc358262d045b72c59c553d11d633d3d9c69e24a
Related
Open Directory accounts lose access when someone leaves the directory in the timeline