setting_ldap.go 322 B

12345678910111213141516171819
  1. package setting
  2. type LdapFilterToOrg struct {
  3. Filter string
  4. OrgId int
  5. OrgRole string
  6. }
  7. type LdapSettings struct {
  8. Enabled bool
  9. Hosts []string
  10. UseSSL bool
  11. BindDN string
  12. AttrUsername string
  13. AttrName string
  14. AttrSurname string
  15. AttrMail string
  16. Filters []LdapFilterToOrg
  17. }