uid=admin,ou=users,dc=opencloud,dc=com

This commit is contained in:
mr
2026-02-02 11:02:27 +01:00
parent f56b947e1f
commit 02476ca07d

View File

@@ -377,7 +377,7 @@ func (cli *Client) findBasicUserDetails(cn conn, username string, attrs []string
fmt.Println("Second woth : ", cli.UserBaseDN, cli.BindPass) fmt.Println("Second woth : ", cli.UserBaseDN, cli.BindPass)
if cli.UserBaseDN != "" { if cli.UserBaseDN != "" {
// We need to login to a LDAP server with a service account for retrieving user data. // We need to login to a LDAP server with a service account for retrieving user data.
if err := cn.Bind(cli.UserBaseDN, cli.BindPass); err != nil { if err := cn.Bind(cli.BindDN, cli.BindPass); err != nil {
return nil, errors.New(err.Error() + " : failed to login to a LDAP woth a service account") return nil, errors.New(err.Error() + " : failed to login to a LDAP woth a service account")
} }
} }