Documentation ¶
Index ¶
- Constants
- func EscapeFilter(pattern string, values ...string) string
- func ServiceProvider(url string) service.Provider
- type SearchOptionFunc
- type SearchOptions
- type Service
- func (s *Service) Bind(dn, password string) error
- func (s *Service) BindConn(conn *ldap.Conn, dn, password string) error
- func (s *Service) Connect() (*ldap.Conn, error)
- func (s *Service) ModifyPassword(identity, oldPassword, newPassword string) error
- func (s *Service) ModifyPasswordConn(conn *ldap.Conn, identity, oldPassword, newPassword string) error
- func (s *Service) Search(filter string, opts ...SearchOptionFunc) (*ldap.SearchResult, error)
- func (s *Service) SearchConn(conn *ldap.Conn, filter string, opts ...SearchOptionFunc) (*ldap.SearchResult, error)
Constants ¶
View Source
const ServiceName service.Name = "ldap"
Variables ¶
This section is empty.
Functions ¶
func EscapeFilter ¶
func ServiceProvider ¶
Types ¶
type SearchOptionFunc ¶
type SearchOptionFunc func(opts *SearchOptions)
func WithAttributes ¶
func WithAttributes(attributes ...string) SearchOptionFunc
func WithBaseDN ¶
func WithBaseDN(dn string) SearchOptionFunc
func WithScope ¶
func WithScope(scope int) SearchOptionFunc
func WithSizeLimit ¶
func WithSizeLimit(sizeLimit int) SearchOptionFunc
type SearchOptions ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func (*Service) ModifyPassword ¶
func (*Service) ModifyPasswordConn ¶
func (*Service) Search ¶
func (s *Service) Search(filter string, opts ...SearchOptionFunc) (*ldap.SearchResult, error)
func (*Service) SearchConn ¶
func (s *Service) SearchConn(conn *ldap.Conn, filter string, opts ...SearchOptionFunc) (*ldap.SearchResult, error)
Click to show internal directories.
Click to hide internal directories.