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

remotes/origin/stable6
Arthur Schiwon 12 years ago
parent 0f4e02b6fc
commit aa3973d365
  1. 5
      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);

Loading…
Cancel
Save