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

  1. Enable [auth.ldap], point config_file at ldap.toml, and choose allow_sign_up; the default creates local users after successful LDAP login.
  2. 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.
  3. 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.

Official documentation

Have Pilae connect your identity provider

Pilae can deploy Grafana with your identity provider already connected. We agree the edition, account mapping and access tests with your team before rollout.