Grafana authentication with Active Directory (LDAP)
Use standard LDAP authentication and login-time org-role mapping; Enterprise Enhanced LDAP is a separate feature for background synchronization.
Last updated
On this page (5)
Grafana · Active Directory / LDAP · LDAP
Before you start
- AD search service account and trusted TLS endpoint.
- Grafana configuration and ldap.toml access.
Configure sign-in
- Enable [auth.ldap], point config_file at ldap.toml, and choose allow_sign_up; the default creates local users after successful LDAP login.
- Configure the server, bind DN, protected password, base DNs, CA trust and TLS mode. Set the search filter for sAMAccountName and/or userPrincipalName as required.
- Map AD group DNs to org_role in ldap.toml, with specific rules before any catch-all; use the documented nested-group search only if nested membership is required.
Verify the result
- Test allowed and denied users and verify the actual org role.
- Verify that memberships are reevaluated on login under standard LDAP; don’t promise background deprovisioning.
