From: Insanemal Date: Mon, 21 Nov 2011 10:20:26 +0000 (+1000) Subject: Adjusted the check user function to lowercase the return. X-Git-Tag: v3.0~85^2~10 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=8d092434edcabbede56feaf1be925e7d88d8aee2;p=nextcloud-server.git Adjusted the check user function to lowercase the return. Signed-off-by: Insanemal --- diff --git a/apps/user_ldap/user_ldap.php b/apps/user_ldap/user_ldap.php index 0b309fd99d5..d35cefcaae1 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 ) {