Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ILDAPService ¶
type ILDAPService interface { Connect() error Close() Authenticate(username, password string) (bool, map[string]string, error) GetGroupsOfUser(userDN string) ([]string, error) IsAvailable() bool }
func NewLDAPClient ¶
func NewLDAPClient() ILDAPService
type ILdapClient ¶
type Service ¶
type Service struct { Host string Port int Base string BindDN string BindPassword string ServerName string InsecureSkipVerify bool UseSSL bool SkipTLS bool ClientCertificates []tls.Certificate Conn ILdapClient UserFilter string }
func (*Service) Authenticate ¶
func (*Service) GetGroupsOfUser ¶
func (*Service) IsAvailable ¶ added in v1.7.0
Click to show internal directories.
Click to hide internal directories.