settings.go 416 B

12345678910111213141516171819202122232425
  1. package auth
  2. type LdapGroupToOrgRole struct {
  3. GroupDN string
  4. OrgId int
  5. OrgRole string
  6. }
  7. type LdapServerConf struct {
  8. Host string
  9. Port string
  10. UseSSL bool
  11. BindDN string
  12. BindPassword string
  13. AttrUsername string
  14. AttrName string
  15. AttrSurname string
  16. AttrEmail string
  17. AttrMemberOf string
  18. SearchFilter string
  19. SearchBaseDNs []string
  20. LdapGroups []*LdapGroupToOrgRole
  21. }