Confluence session persistence after external directory account disablement
0 reputation · 17 May 2020, 21:38 UTC
0 reputation · 17 May 2020, 21:38 UTC
Goal: Bound the window in which a disabled or expired external directory account can still access Confluence, so directory least-privilege state is enforced sooner than the default session lifetime.
In self-managed Confluence Server or Data Center connected to LDAP or Active Directory, Confluence maintains its own session state after login and does not revalidate directory credentials on every request. Existing sessions and Remember Me cookies can remain valid after account disablement or password expiry until session timeout, cookie expiry, or cluster cache eviction. Confluence global and space permissions are stored independently and are not automatically removed when the directory account changes. Revocation timing varies by version, directory connector, and cache configuration.
Which Confluence setting or supported extension forces revalidation of external directory account status at a defined interval? Can session invalidation be triggered immediately when directory credentials expire or an account is disabled? What is the maximum access window imposed by session timeout and Remember Me settings in this scenario?
No standard Confluence setting forces periodic revalidation of an external LDAP or Active Directory account after login, and Confluence does not natively invalidate an existing session immediately when a directory account is disabled or a password expires. After authentication, Confluence enforces access through its own session and independently stored permissions; directory account status is not checked on every request.
The window is effectively the greater of the configured Confluence session timeout and the Remember Me cookie lifetime, plus any cluster cache replication or eviction delay in Data Center. Exact default values vary by Confluence version and configuration and must be checked on the target system rather than assumed.
confluence.cfg.xml for the configured session timeout and whether Remember Me is enabled.None of these mitigations guarantees immediate revocation solely from directory disablement. Manual invalidation may not remove already-issued Remember Me cookies until they expire.
Is this deployment a single Confluence Server instance or a clustered Confluence Data Center installation? This determines whether session invalidation must be propagated across nodes.
Use comments to ask for clarification. Post a solution as an answer.
No question comments on this page.