settings.go 472 B

123456789101112131415161718192021222324252627
  1. package auth
  2. import m "github.com/grafana/grafana/pkg/models"
  3. type LdapGroupToOrgRole struct {
  4. GroupDN string
  5. OrgId int64
  6. OrgRole m.RoleType
  7. }
  8. type LdapServerConf struct {
  9. Host string
  10. Port string
  11. UseSSL bool
  12. BindDN string
  13. BindPassword string
  14. AttrUsername string
  15. AttrName string
  16. AttrSurname string
  17. AttrEmail string
  18. AttrMemberOf string
  19. SearchFilter string
  20. SearchBaseDNs []string
  21. LdapGroups []*LdapGroupToOrgRole
  22. }