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(username string) ([]string, error) }
func NewLDAPClient ¶
func NewLDAPClient() ILDAPService
type ILdapClient ¶
type Mock ¶
func (*Mock) Authenticate ¶
type Service ¶
type Service struct { Attributes []string Base string BindDN string BindPassword string GroupFilter string GroupFilterAttribute string Host string ServerName string UserFilter string Conn ILdapClient Port int InsecureSkipVerify bool UseSSL bool SkipTLS bool ClientCertificates []tls.Certificate }
func (*Service) Authenticate ¶
func (*Service) ConnectAndBind ¶ added in v1.5.0
Click to show internal directories.
Click to hide internal directories.