uid=admin,ou=users,dc=opencloud,dc=com
This commit is contained in:
@@ -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")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user