Documentation
¶
Index ¶
- Variables
- func IsBadConn(err error) bool
- type DBStats
- type Directory
- func (dir *Directory) Del(ctx context.Context, delRequest *ldap.DelRequest) error
- func (dir *Directory) Modify(ctx context.Context, modifyRequest *ldap.ModifyRequest) error
- func (dir *Directory) ModifyWithResult(ctx context.Context, modifyRequest *ldap.ModifyRequest) (res *ldap.ModifyResult, err error)
- func (dir *Directory) PrintSRVs()
- func (dir *Directory) Search(ctx context.Context, searchRequest *ldap.SearchRequest) (res *ldap.SearchResult, err error)
- func (dir *Directory) SearchWithPaging(ctx context.Context, searchRequest *ldap.SearchRequest, pagingSize uint32) (res *ldap.SearchResult, err error)
- func (dir *Directory) SetConnMaxIdleTime(d time.Duration)
- func (dir *Directory) SetConnMaxLifetime(d time.Duration)
- func (dir *Directory) SetMaxIdleConns(n int)
- func (dir *Directory) SetMaxOpenConns(n int)
- func (dir *Directory) Stats() DBStats
- func (dir *Directory) StickyConn(ctx context.Context, fn func(stickyConn *ldap.Conn) error) error
- func (dir *Directory) VerifyPassword(ctx context.Context, username, password string) error
- type Option
- type Server
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNoServerDefined = errors.New("ad: no server defined") ErrDirClosed = errors.New("ad: directory closed") ErrDuplicateConnClose = errors.New("ad: duplicate conn close") ErrConnExpired = adErr{ErrBadConn, "ad: connection expired"} ErrBadConn = errors.New("ad: bad conn") )
Functions ¶
Types ¶
type Directory ¶
type Directory struct { Name string // contains filtered or unexported fields }
func (*Directory) ModifyWithResult ¶
func (*Directory) SearchWithPaging ¶
func (*Directory) SetConnMaxIdleTime ¶
func (*Directory) SetConnMaxLifetime ¶
func (*Directory) SetMaxIdleConns ¶
func (*Directory) SetMaxOpenConns ¶
func (*Directory) StickyConn ¶
type Option ¶
type Option struct { StartTLS bool TLSConfig *tls.Config // by default the connector will use the scheme (ldap/ldaps) returned by net.LookupSRV. // setting LDAPsPort to a non-zero value will force ldaps on all ldap scheme at the specified port LDAPsPort uint16 BindFunc func(ctx context.Context, conn *ldap.Conn, server *Server) error Dialer *net.Dialer MaxIdleConns int MaxOpenConns int ConnMaxLifetime time.Duration ConnMaxIdleTime time.Duration }
Source Files
¶
Click to show internal directories.
Click to hide internal directories.