Advertisement
Guest User

Grafana config help

a guest
Feb 1st, 2016
2,049
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.01 KB | None | 0 0
  1. # Set to true to log user information returned from LDAP
  2. verbose_logging = false
  3.  
  4. [[servers]]
  5. # Ldap server host (specify multiple hosts space separated)
  6. host = "192.168.169.156"
  7. # Default port is 389 or 636 if use_ssl = true
  8. port = 389
  9. # Set to true if ldap server supports TLS
  10. use_ssl = false
  11. # set to true if you want to skip ssl cert validation
  12. ssl_skip_verify = false
  13. # set to the path to your root CA certificate or leave unset to use system defaults
  14. # root_ca_cert = /path/to/certificate.crt
  15.  
  16. # Search user bind dn
  17. bind_dn = "cn=grafana,o=users,dc=ActTest,dc=dk"
  18. # Search user bind password
  19. bind_password = 'Passw0rd'
  20.  
  21. # User search filter, for example "(cn=%s)" or "(sAMAccountName=%s)" or "(uid=%s)"
  22. search_filter = "(cn=%s)"
  23.  
  24. # An array of base dns to search through
  25. search_base_dns = ["dc=ActTest,dc=dk"]
  26.  
  27. # In POSIX LDAP schemas, without memberOf attribute a secondary query must be made for groups.
  28. # This is done by enabling group_search_filter below. You must also set member_of= "cn"
  29. # in [servers.attributes] below.
  30.  
  31. ## Group search filter, to retrieve the groups of which the user is a member (only set if memberOf attribute is not available)
  32. # group_search_filter = "(&(objectClass=posixGroup)(memberUid=%s))"
  33. ## An array of the base DNs to search through for groups. Typically uses ou=groups
  34. # group_search_base_dns = ["ou=groups,dc=grafana,dc=org"]
  35.  
  36. # Specify names of the ldap attributes your ldap uses
  37. [servers.attributes]
  38. name = "givenName"
  39. surname = "sn"
  40. username = "cn"
  41. member_of = "memberOf"
  42. email = "email"
  43.  
  44. # Map ldap groups to grafana org roles
  45. [[servers.group_mappings]]
  46. group_dn = "cn=admins,dc=ActTest,dc=com"
  47. org_role = "Admin"
  48. # The Grafana organization database id, optional, if left out the default org (id 1) will be used
  49. # org_id = 1
  50.  
  51. [[servers.group_mappings]]
  52. group_dn = "cn=editors,dc=ActTest,dc=com"
  53. org_role = "Editor"
  54.  
  55. [[servers.group_mappings]]
  56. # If you want to match all (or no ldap groups) then you can use wildcard
  57. group_dn = "*"
  58. org_role = "Viewer"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement