ldap_dev.toml 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. # To troubleshoot and get more log info enable ldap debug logging in grafana.ini
  2. # [log]
  3. # filters = ldap:debug
  4. # For the verbose comments options see "openldap" env block
  5. # --- First LDAP Server (only admins) ---
  6. [[servers]]
  7. host = "127.0.0.1"
  8. port = 389
  9. use_ssl = false
  10. start_tls = false
  11. ssl_skip_verify = false
  12. bind_dn = "cn=admin,dc=grafana,dc=org"
  13. bind_password = 'grafana'
  14. search_filter = "(cn=%s)"
  15. search_base_dns = ["ou=users,dc=grafana,dc=org"]
  16. [servers.attributes]
  17. name = "givenName"
  18. surname = "sn"
  19. username = "cn"
  20. member_of = "memberOf"
  21. email = "email"
  22. [[servers.group_mappings]]
  23. group_dn = "cn=admins,ou=groups,dc=grafana,dc=org"
  24. org_role = "Admin"
  25. grafana_admin = true
  26. # --- Second LDAP Server (rest of the users) ---
  27. [[servers]]
  28. host = "127.0.0.1"
  29. port = 388
  30. use_ssl = false
  31. start_tls = false
  32. ssl_skip_verify = false
  33. bind_dn = "cn=admin,dc=grafana,dc=org"
  34. bind_password = 'grafana'
  35. search_filter = "(cn=%s)"
  36. search_base_dns = ["ou=users,dc=grafana,dc=org"]
  37. [servers.attributes]
  38. name = "givenName"
  39. surname = "sn"
  40. username = "cn"
  41. member_of = "memberOf"
  42. email = "email"
  43. [[servers.group_mappings]]
  44. group_dn = "cn=editors,ou=groups,dc=grafana,dc=org"
  45. org_role = "Editor"
  46. [[servers.group_mappings]]
  47. group_dn = "*"
  48. org_role = "Viewer"