Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { Conn ldap.Client Config *Config // contains filtered or unexported fields }
Client - the ldap client
func (*Client) Authenticate ¶
Authenticate - authenticates a user against ldap
type Config ¶
type Config struct { Attributes []string Base string BindDN string BindPassword string GroupFilter string // e.g. "(memberUid=%s)" Host string UserFilter string // e.g. "(uid=%s)" Port int InsecureSkipVerify bool UseSSL bool ClientCertificates []tls.Certificate // Adding client certificates CACertificates []byte }
Config - ldap client config
Click to show internal directories.
Click to hide internal directories.