From d392aa81c743bdf24df42398e7eca05f66bd50a8 Mon Sep 17 00:00:00 2001 From: Arthur Schiwon Date: Tue, 19 Mar 2013 00:23:35 +0100 Subject: [PATCH] LDAP: user exists check on getHome, otherwise check will be performed with wrong configs on a multi LDAP server setup. --- apps/user_ldap/user_ldap.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/apps/user_ldap/user_ldap.php b/apps/user_ldap/user_ldap.php index 44a19478598..6af876e483f 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); -- 2.39.5