Merge pull request #5951 from owncloud/ldap_encryption_fix

fix encryption with LDAP, make sure that the owners home is mounted correctly
This commit is contained in:
blizzz 2013-11-19 13:51:12 -08:00
commit 93ff86e31f

View file

@ -84,6 +84,8 @@ class Util {
$this->privateKeyPath =
'/owncloud_private_key/' . $this->userId . '.private.key'; // e.g. data/admin/admin.private.key
$this->isPublic = true;
// make sure that the owners home is mounted
\OC\Files\Filesystem::initMountPoints($GLOBALS['fileOwner']);
}
} else {
@ -99,6 +101,8 @@ class Util {
$this->publicKeyDir . '/' . $this->userId . '.public.key'; // e.g. data/public-keys/admin.public.key
$this->privateKeyPath =
$this->encryptionDir . '/' . $this->userId . '.private.key'; // e.g. data/admin/admin.private.key
// make sure that the owners home is mounted
\OC\Files\Filesystem::initMountPoints($this->userId);
}
}