new oclib
This commit is contained in:
@@ -102,8 +102,8 @@ func (cli *Client) Authenticate(ctx context.Context, username string, password s
|
||||
if details == nil {
|
||||
return false, nil
|
||||
}
|
||||
a := details["dn"]
|
||||
if err := cn.Bind(a[0], password); err != nil {
|
||||
fmt.Println(details["dn"])
|
||||
if err := cn.Bind(details["dn"][0], password); err != nil {
|
||||
if err == errInvalidCredentials {
|
||||
return false, nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user