mirror of
https://github.com/cwinfo/matterbridge.git
synced 2024-11-23 04:41:36 +00:00
31 lines
740 B
Go
31 lines
740 B
Go
package ldap
|
|
|
|
import (
|
|
"crypto/tls"
|
|
"time"
|
|
)
|
|
|
|
// Client knows how to interact with an LDAP server
|
|
type Client interface {
|
|
Start()
|
|
StartTLS(*tls.Config) error
|
|
Close()
|
|
SetTimeout(time.Duration)
|
|
|
|
Bind(username, password string) error
|
|
UnauthenticatedBind(username string) error
|
|
SimpleBind(*SimpleBindRequest) (*SimpleBindResult, error)
|
|
ExternalBind() error
|
|
|
|
Add(*AddRequest) error
|
|
Del(*DelRequest) error
|
|
Modify(*ModifyRequest) error
|
|
ModifyDN(*ModifyDNRequest) error
|
|
|
|
Compare(dn, attribute, value string) (bool, error)
|
|
PasswordModify(*PasswordModifyRequest) (*PasswordModifyResult, error)
|
|
|
|
Search(*SearchRequest) (*SearchResult, error)
|
|
SearchWithPaging(searchRequest *SearchRequest, pagingSize uint32) (*SearchResult, error)
|
|
}
|