diff options
author | Christopher Speller <crspeller@gmail.com> | 2015-12-08 13:38:43 -0500 |
---|---|---|
committer | Christopher Speller <crspeller@gmail.com> | 2015-12-16 17:30:15 -0500 |
commit | 58358ddd7cd0152bf16a7326e1d595524fb51246 (patch) | |
tree | 350cd462f9b530529e0f098fa1d458c3a36abd4a /Godeps/_workspace/src/github.com/go-ldap/ldap/client.go | |
parent | 4f881046bf2a4c74fb44d71e2e78826c70719a8c (diff) | |
download | chat-58358ddd7cd0152bf16a7326e1d595524fb51246.tar.gz chat-58358ddd7cd0152bf16a7326e1d595524fb51246.tar.bz2 chat-58358ddd7cd0152bf16a7326e1d595524fb51246.zip |
Some refactoring
Diffstat (limited to 'Godeps/_workspace/src/github.com/go-ldap/ldap/client.go')
-rw-r--r-- | Godeps/_workspace/src/github.com/go-ldap/ldap/client.go | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/Godeps/_workspace/src/github.com/go-ldap/ldap/client.go b/Godeps/_workspace/src/github.com/go-ldap/ldap/client.go new file mode 100644 index 000000000..d3401f9e6 --- /dev/null +++ b/Godeps/_workspace/src/github.com/go-ldap/ldap/client.go @@ -0,0 +1,23 @@ +package ldap + +import "crypto/tls" + +// Client knows how to interact with an LDAP server +type Client interface { + Start() + StartTLS(config *tls.Config) error + Close() + + Bind(username, password string) error + SimpleBind(simpleBindRequest *SimpleBindRequest) (*SimpleBindResult, error) + + Add(addRequest *AddRequest) error + Del(delRequest *DelRequest) error + Modify(modifyRequest *ModifyRequest) error + + Compare(dn, attribute, value string) (bool, error) + PasswordModify(passwordModifyRequest *PasswordModifyRequest) (*PasswordModifyResult, error) + + Search(searchRequest *SearchRequest) (*SearchResult, error) + SearchWithPaging(searchRequest *SearchRequest, pagingSize uint32) (*SearchResult, error) +} |