Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrUserNotFound = fmt.Errorf("User not found")
)
Functions ¶
func BindAdmin ¶
func BindAdmin(c *ldap.Conn) error
BindAdmin binds as a read-only LDAP user which is to be used for searching the LDAP directory.
func BindUser ¶
BindAdmin binds as a read-only LDAP user which is to be used for searching the LDAP directory.
func Connect ¶
func Connect() (*ldap.Conn, error)
Connect creates a new connection for talking to ldap
func SearchUser ¶
SearchUser attempts to search for a given username, SearchUser also assumes that you have already run Bind with a valid user.
Types ¶
Click to show internal directories.
Click to hide internal directories.