LDAP: user exists check on getHome, otherwise check will be performed with wrong configs on a multi LDAP server setup.

This commit is contained in:
Arthur Schiwon 2013-03-19 00:23:35 +01:00
parent 0f4e02b6fc
commit aa3973d365

View file

@ -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);