2015-07-15 07:48:39 -05:00
|
|
|
# Set to true to log user information returned from LDAP
|
|
|
|
verbose_logging = false
|
2015-07-15 03:08:23 -05:00
|
|
|
|
|
|
|
[[servers]]
|
2015-10-11 11:14:46 -05:00
|
|
|
# Ldap server host (specify multiple hosts space separated)
|
2015-07-15 03:08:23 -05:00
|
|
|
host = "127.0.0.1"
|
2015-07-15 07:48:39 -05:00
|
|
|
# Default port is 389 or 636 if use_ssl = true
|
2015-07-15 03:08:23 -05:00
|
|
|
port = 389
|
2015-07-15 07:48:39 -05:00
|
|
|
# Set to true if ldap server supports TLS
|
2015-07-15 03:08:23 -05:00
|
|
|
use_ssl = false
|
2015-07-16 04:57:59 -05:00
|
|
|
# set to true if you want to skip ssl cert validation
|
|
|
|
ssl_skip_verify = false
|
2015-10-11 11:38:33 -05:00
|
|
|
# set to the path to your root CA certificate or leave unset to use system defaults
|
|
|
|
# root_ca_cert = /path/to/certificate.crt
|
2015-07-15 03:08:23 -05:00
|
|
|
|
2015-07-15 07:48:39 -05:00
|
|
|
# Search user bind dn
|
2015-07-15 03:08:23 -05:00
|
|
|
bind_dn = "cn=admin,dc=grafana,dc=org"
|
2015-07-15 07:48:39 -05:00
|
|
|
# Search user bind password
|
2015-07-18 02:30:09 -05:00
|
|
|
bind_password = 'grafana'
|
2015-07-15 03:08:23 -05:00
|
|
|
|
2015-07-15 07:48:39 -05:00
|
|
|
# Search filter, for example "(cn=%s)" or "(sAMAccountName=%s)"
|
2015-07-15 03:08:23 -05:00
|
|
|
search_filter = "(cn=%s)"
|
2015-07-15 07:48:39 -05:00
|
|
|
# An array of base dns to search through
|
2015-07-15 03:08:23 -05:00
|
|
|
search_base_dns = ["dc=grafana,dc=org"]
|
|
|
|
|
2015-07-15 07:48:39 -05:00
|
|
|
# Specify names of the ldap attributes your ldap uses
|
2015-07-15 03:08:23 -05:00
|
|
|
[servers.attributes]
|
|
|
|
name = "givenName"
|
|
|
|
surname = "sn"
|
|
|
|
username = "cn"
|
|
|
|
member_of = "memberOf"
|
|
|
|
email = "email"
|
|
|
|
|
2015-07-15 07:48:39 -05:00
|
|
|
# Map ldap groups to grafana org roles
|
2015-07-15 03:08:23 -05:00
|
|
|
[[servers.group_mappings]]
|
|
|
|
group_dn = "cn=admins,dc=grafana,dc=org"
|
|
|
|
org_role = "Admin"
|
2015-07-15 07:48:39 -05:00
|
|
|
# The Grafana organization database id, optional, if left out the default org (id 1) will be used
|
|
|
|
# org_id = 1
|
2015-07-15 03:08:23 -05:00
|
|
|
|
2015-08-01 03:28:43 -05:00
|
|
|
[[servers.group_mappings]]
|
2015-07-15 03:08:23 -05:00
|
|
|
group_dn = "cn=users,dc=grafana,dc=org"
|
|
|
|
org_role = "Editor"
|
|
|
|
|
|
|
|
[[servers.group_mappings]]
|
2015-07-15 07:48:39 -05:00
|
|
|
# If you want to match all (or no ldap groups) then you can use wildcard
|
2015-07-15 03:08:23 -05:00
|
|
|
group_dn = "*"
|
|
|
|
org_role = "Viewer"
|