Add 'Add' and 'Del' functions to LDAP interface (#10692)

This commit is contained in:
Michael Golowka 2021-01-20 16:59:29 -07:00 committed by GitHub
parent 086e8bbb74
commit 1f164a8202
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 0 deletions

View File

@ -12,7 +12,9 @@ import (
type Connection interface {
Bind(username, password string) error
Close()
Add(addRequest *ldap.AddRequest) error
Modify(modifyRequest *ldap.ModifyRequest) error
Del(delRequest *ldap.DelRequest) error
Search(searchRequest *ldap.SearchRequest) (*ldap.SearchResult, error)
StartTLS(config *tls.Config) error
SetTimeout(timeout time.Duration)

View File

@ -12,7 +12,9 @@ import (
type Connection interface {
Bind(username, password string) error
Close()
Add(addRequest *ldap.AddRequest) error
Modify(modifyRequest *ldap.ModifyRequest) error
Del(delRequest *ldap.DelRequest) error
Search(searchRequest *ldap.SearchRequest) (*ldap.SearchResult, error)
StartTLS(config *tls.Config) error
SetTimeout(timeout time.Duration)