new oclib

This commit is contained in:
mr
2026-01-23 09:40:38 +01:00
parent 932e40190d
commit 9d0b720231
5 changed files with 14 additions and 9 deletions

View File

@@ -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
}