[Grafana] Fix mapping and LDAP failover

This commit is contained in:
otthorn 2021-02-07 13:08:03 +01:00
parent 4bbfed9d2c
commit 3dfbae2119

View file

@ -4,7 +4,7 @@
[[servers]]
# Ldap server host (specify multiple hosts space separated)
host = "10.128.0.11"
host = "re2o-ldap.adm.auro.re ldap-replica-ovh.adm.auro.re 10.128.0.21 10.128.0.149"
# Default port is 389 or 636 if use_ssl = true
port = 389
# Set to true if ldap server supports TLS
@ -45,12 +45,18 @@ username = "cn"
member_of = "dn"
email = "mail"
# Mapping pour les Responsables Techniques
[[servers.group_mappings]]
group_dn = "cn=sudoldap,ou=posix,ou=groups,dc=auro,dc=re"
org_role = "Admin"
# Mapping pour les techniciens (Apprentis)
[[servers.group_mappings]]
group_dn = "cn=technicien,ou=posix,ou=groups,dc=auro,dc=re"
org_role = "Editor"
# Mapping pour les adhérents
[[servers.group_mappings]]
# If you want to match all (or no ldap groups) then you can use wildcard
group_dn = "*"
org_role = "Viewer"