vault/sdk/helper/ldaputil/connection.go
Jeff Mitchell 82f2b55710 Bump go-ldap
Closes https://github.com/hashicorp/vault/pull/7780

Changes to other parts of Vault have to come piece by piece, that's
next.
2019-11-08 11:18:36 -05:00

19 lines
446 B
Go

package ldaputil
import (
"crypto/tls"
"github.com/go-ldap/ldap/v3"
)
// Connection provides the functionality of an LDAP connection,
// but through an interface.
type Connection interface {
Bind(username, password string) error
Close()
Modify(modifyRequest *ldap.ModifyRequest) error
Search(searchRequest *ldap.SearchRequest) (*ldap.SearchResult, error)
StartTLS(config *tls.Config) error
UnauthenticatedBind(username string) error
}