Versions in this module Expand all Collapse all v1 v1.0.0 Apr 30, 2026 Changes in this version + type Client struct + Attributes []string + Base string + BindDN string + BindPassword string + ClientCertificates []tls.Certificate + Conn Conn + GroupFilter string + Host string + Hosts []string + InsecureSkipVerify bool + Port int + ServerName string + SkipTLS bool + TLSConfig *tls.Config + UseSSL bool + UserFilter string + func (lc *Client) Authenticate(username, password string) (ok bool, user map[string][]string, err error) + func (lc *Client) AuthenticateContext(ctx context.Context, username, password string) (ok bool, user map[string][]string, err error) + func (lc *Client) Close() + func (lc *Client) Connect() error + func (lc *Client) ConnectContext(ctx context.Context) error + func (lc *Client) GetGroupsOfUser(username string) ([]string, error) + func (lc *Client) GetGroupsOfUserContext(ctx context.Context, username string) ([]string, error) + type Conn interface + Bind func(username, password string) error + Close func() error + Search func(searchRequest *ldap.SearchRequest) (*ldap.SearchResult, error) + SetTimeout func(time.Duration) + StartTLS func(config *tls.Config) error Other modules containing this package github.com/jtblin/go-ldap-client/v2