BookStack authentication with Active Directory (LDAP)
Authenticate directly against AD and optionally derive BookStack roles from directory group memberships.
Last updated
On this page (5)
BookStack · Active Directory / LDAP · LDAP
Before you start
- PHP LDAP extension.
- Trusted AD TLS endpoint and read-only search bind.
- User search base and documented account-linking plan.
Configure sign-in
- Set AUTH_METHOD=ldap, LDAP_SERVER to the trusted LDAPS endpoint, LDAP_BASE_DN, LDAP_DN and LDAP_PASS; configure the CA trust rather than disabling verification.
- Adapt LDAP_USER_FILTER to the AD login attribute such as sAMAccountName. Configure LDAP_ID_ATTRIBUTE=objectGUID for the documented AD setup and map the email/display attributes to the actual directory attributes.
- Link existing users using their External Authentication ID. If you want role sync, enable LDAP_USER_TO_GROUPS and match the group CN to a BookStack role or explicit role External Authentication ID; BookStack normalizes group names.
Verify the result
- Test account linking and role matching with an AD user.
- Check a removed group after the next login if LDAP_REMOVE_FROM_GROUPS is enabled; verify that a missing or untrusted TLS CA causes failure.
