From b63b82976b3708b082326c0b7d42f38d4bc261fa Mon Sep 17 00:00:00 2001 From: Sven-Hendrik Haase Date: Thu, 2 Apr 2020 23:07:49 +0200 Subject: [PATCH] Docs: Document the ability to use env vars in ldap.toml (#23304) This was implemented but never documented. This is related to: https://github.com/grafana/grafana/issues/8832 https://github.com/grafana/grafana/issues/5248 https://github.com/grafana/grafana/pull/20173 --- docs/sources/auth/ldap.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docs/sources/auth/ldap.md b/docs/sources/auth/ldap.md index 47baab7bb5c..a94905c9f53 100644 --- a/docs/sources/auth/ldap.md +++ b/docs/sources/auth/ldap.md @@ -92,6 +92,14 @@ member_of = "memberOf" email = "email" ``` +### Using environment variables + +You can interpolate variables in the TOML config from environment variables. For instance, you could externalize your `bind_password` that way: + +```bash +bind_password = "${LDAP_ADMIN_PASSWORD}" +``` + ## LDAP Debug View > Only available in Grafana v6.4+