ldap_multiple.toml 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. # --- First LDAP Server ---
  2. [[servers]]
  3. host = "10.0.0.1"
  4. port = 389
  5. use_ssl = false
  6. start_tls = false
  7. ssl_skip_verify = false
  8. bind_dn = "cn=admin,dc=grafana,dc=org"
  9. bind_password = 'grafana'
  10. search_filter = "(cn=%s)"
  11. search_base_dns = ["ou=users,dc=grafana,dc=org"]
  12. [servers.attributes]
  13. name = "givenName"
  14. surname = "sn"
  15. username = "cn"
  16. member_of = "memberOf"
  17. email = "email"
  18. [[servers.group_mappings]]
  19. group_dn = "cn=admins,ou=groups,dc=grafana,dc=org"
  20. org_role = "Admin"
  21. grafana_admin = true
  22. # --- Second LDAP Server ---
  23. [[servers]]
  24. host = "10.0.0.2"
  25. port = 389
  26. use_ssl = false
  27. start_tls = false
  28. ssl_skip_verify = false
  29. bind_dn = "cn=admin,dc=grafana,dc=org"
  30. bind_password = 'grafana'
  31. search_filter = "(cn=%s)"
  32. search_base_dns = ["ou=users,dc=grafana,dc=org"]
  33. [servers.attributes]
  34. name = "givenName"
  35. surname = "sn"
  36. username = "cn"
  37. member_of = "memberOf"
  38. email = "email"
  39. [[servers.group_mappings]]
  40. group_dn = "cn=editors,ou=groups,dc=grafana,dc=org"
  41. org_role = "Editor"
  42. [[servers.group_mappings]]
  43. group_dn = "*"
  44. org_role = "Viewer"