Documentation ¶
Index ¶
- Variables
- type Conn
- type Group
- type Ldap
- func (l *Ldap) Connect() (*ldap.Conn, error)
- func (l *Ldap) ConnectWithCheck() (*ldap.Conn, error)
- func (l *Ldap) Groups(conn *ldap.Conn) ([]LdapGroup, error)
- func (l *Ldap) StartSync(ctx context.Context, fn func(bool, string) error)
- func (l *Ldap) Users(conn *ldap.Conn, uids []string) ([]LdapUser, error)
- type LdapBind
- type LdapGroup
- type LdapMap
- type LdapUser
- type Simple
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultLdapSyncDuration = 10 * time.Minute
Functions ¶
This section is empty.
Types ¶
type Ldap ¶
type Ldap struct { DisableFirstConnect bool `cfg:"disable_first_connect"` Addr string `cfg:"addr"` Bind LdapBind `cfg:"bind"` Group Group `cfg:"group"` UserBaseDN string `cfg:"user_base_dn"` SyncDuration time.Duration `cfg:"sync_duration"` DisableSync bool `cfg:"disable_sync"` // contains filtered or unexported fields }
func (*Ldap) ConnectWithCheck ¶
Click to show internal directories.
Click to hide internal directories.