mirror of
https://github.com/grafana/grafana.git
synced 2024-11-22 08:56:43 -06:00
1c08e58605
* Add multildap config example * Publicize mocks for multildap module
54 lines
1.0 KiB
TOML
54 lines
1.0 KiB
TOML
# --- First LDAP Server ---
|
|
|
|
[[servers]]
|
|
host = "10.0.0.1"
|
|
port = 389
|
|
use_ssl = false
|
|
start_tls = false
|
|
ssl_skip_verify = false
|
|
bind_dn = "cn=admin,dc=grafana,dc=org"
|
|
bind_password = 'grafana'
|
|
search_filter = "(cn=%s)"
|
|
search_base_dns = ["ou=users,dc=grafana,dc=org"]
|
|
|
|
[servers.attributes]
|
|
name = "givenName"
|
|
surname = "sn"
|
|
username = "cn"
|
|
member_of = "memberOf"
|
|
email = "email"
|
|
|
|
[[servers.group_mappings]]
|
|
group_dn = "cn=admins,ou=groups,dc=grafana,dc=org"
|
|
org_role = "Admin"
|
|
grafana_admin = true
|
|
|
|
# --- Second LDAP Server ---
|
|
|
|
[[servers]]
|
|
host = "10.0.0.2"
|
|
port = 389
|
|
use_ssl = false
|
|
start_tls = false
|
|
ssl_skip_verify = false
|
|
|
|
bind_dn = "cn=admin,dc=grafana,dc=org"
|
|
bind_password = 'grafana'
|
|
search_filter = "(cn=%s)"
|
|
search_base_dns = ["ou=users,dc=grafana,dc=org"]
|
|
|
|
[servers.attributes]
|
|
name = "givenName"
|
|
surname = "sn"
|
|
username = "cn"
|
|
member_of = "memberOf"
|
|
email = "email"
|
|
|
|
[[servers.group_mappings]]
|
|
group_dn = "cn=editors,ou=groups,dc=grafana,dc=org"
|
|
org_role = "Editor"
|
|
|
|
[[servers.group_mappings]]
|
|
group_dn = "*"
|
|
org_role = "Viewer"
|