From 403deaf65b3dca9d6ee6aa65fe78259ee46a221c Mon Sep 17 00:00:00 2001 From: mr Date: Fri, 23 Jan 2026 09:49:46 +0100 Subject: [PATCH] test --- infrastructure/auth_connector/ldap.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/infrastructure/auth_connector/ldap.go b/infrastructure/auth_connector/ldap.go index 998c161..211bafd 100644 --- a/infrastructure/auth_connector/ldap.go +++ b/infrastructure/auth_connector/ldap.go @@ -6,6 +6,7 @@ import ( "encoding/json" "errors" "fmt" + "log" "net" "oc-auth/conf" "strings" @@ -102,8 +103,9 @@ func (cli *Client) Authenticate(ctx context.Context, username string, password s if details == nil { return false, nil } - fmt.Println(details["dn"]) - if err := cn.Bind(details["dn"][0], password); err != nil { + a := details["dn"] + log.Println("Binding DN:", a[0], "with password:", password) + if err := cn.Bind(a[0], password); err != nil { if err == errInvalidCredentials { return false, nil }