ldapconfiguration.go 879 B

1234567891011121314151617181920
  1. // Copyright (C) 2018 The Syncthing Authors.
  2. //
  3. // This Source Code Form is subject to the terms of the Mozilla Public
  4. // License, v. 2.0. If a copy of the MPL was not distributed with this file,
  5. // You can obtain one at https://mozilla.org/MPL/2.0/.
  6. package config
  7. type LDAPConfiguration struct {
  8. Address string `json:"address" xml:"address,omitempty"`
  9. BindDN string `json:"bindDN" xml:"bindDN,omitempty"`
  10. Transport LDAPTransport `json:"transport" xml:"transport,omitempty"`
  11. InsecureSkipVerify bool `json:"insecureSkipVerify" xml:"insecureSkipVerify,omitempty" default:"false"`
  12. SearchBaseDN string `json:"searchBaseDN" xml:"searchBaseDN,omitempty"`
  13. SearchFilter string `json:"searchFilter" xml:"searchFilter,omitempty"`
  14. }
  15. func (c LDAPConfiguration) Copy() LDAPConfiguration {
  16. return c
  17. }