From: Arthur Schiwon Date: Mon, 18 Mar 2013 23:23:35 +0000 (+0100) Subject: LDAP: user exists check on getHome, otherwise check will be performed with wrong... X-Git-Tag: v6.0.0alpha2~1036 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=aa3973d365a5cefccbf42bcc445d1fce6cad033e;p=nextcloud-server.git LDAP: user exists check on getHome, otherwise check will be performed with wrong configs on a multi LDAP server setup. --- diff --git a/apps/user_ldap/user_ldap.php b/apps/user_ldap/user_ldap.php index e3a8ba6812c..1277e074714 100644 --- a/apps/user_ldap/user_ldap.php +++ b/apps/user_ldap/user_ldap.php @@ -180,6 +180,11 @@ class USER_LDAP extends lib\Access implements \OCP\UserInterface { * @return boolean */ public function getHome($uid) { + // user Exists check required as it is not done in user proxy! + if(!$this->userExists($uid)) { + return false; + } + $cacheKey = 'getHome'.$uid; if($this->connection->isCached($cacheKey)) { return $this->connection->getFromCache($cacheKey);