mirror of
https://github.com/nextcloud/server.git
synced 2026-03-26 20:33:55 -04:00
Adjusted the check user function to lowercase the return.
Signed-off-by: Insanemal <insanemal@gmail.com>
This commit is contained in:
parent
18d8dc4757
commit
8d092434ed
1 changed files with 8 additions and 1 deletions
|
|
@ -115,7 +115,14 @@ class OC_USER_LDAP extends OC_User_Backend {
|
|||
|
||||
if (!@ldap_bind( $this->getDs(), $dn, $password ))
|
||||
return false;
|
||||
return $uid;
|
||||
|
||||
if($this->ldap_nocase) {
|
||||
return strtolower($uid);
|
||||
}
|
||||
else {
|
||||
return $uid;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public function userExists( $uid ) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue