diff --git a/apps/user_ldap/user_ldap.php b/apps/user_ldap/user_ldap.php index 0b309fd99d57d10edd467f72dab52d66ffc8530e..d35cefcaae18afc1b14862b3ce9057d59aa15df8 100644 --- a/apps/user_ldap/user_ldap.php +++ b/apps/user_ldap/user_ldap.php @@ -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 ) {