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
|
@ -115,9 +115,16 @@ class OC_USER_LDAP extends OC_User_Backend {
|
||||||
|
|
||||||
if (!@ldap_bind( $this->getDs(), $dn, $password ))
|
if (!@ldap_bind( $this->getDs(), $dn, $password ))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
if($this->ldap_nocase) {
|
||||||
|
return strtolower($uid);
|
||||||
|
}
|
||||||
|
else {
|
||||||
return $uid;
|
return $uid;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
public function userExists( $uid ) {
|
public function userExists( $uid ) {
|
||||||
if(!$this->configured){
|
if(!$this->configured){
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in New Issue