]> source.dussan.org Git - nextcloud-server.git/commitdiff
Adjusted the check user function to lowercase the return.
authorInsanemal <insanemal@gmail.com>
Mon, 21 Nov 2011 10:20:26 +0000 (20:20 +1000)
committerRobin Appelman <icewind1991@gmail.com>
Thu, 24 Nov 2011 01:57:53 +0000 (02:57 +0100)
Signed-off-by: Insanemal <insanemal@gmail.com>
apps/user_ldap/user_ldap.php

index 0b309fd99d57d10edd467f72dab52d66ffc8530e..d35cefcaae18afc1b14862b3ce9057d59aa15df8 100644 (file)
@@ -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 ) {