summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
Diffstat (limited to 'apps')
-rw-r--r--apps/user_ldap/lib/User/OfflineUser.php10
1 files changed, 3 insertions, 7 deletions
diff --git a/apps/user_ldap/lib/User/OfflineUser.php b/apps/user_ldap/lib/User/OfflineUser.php
index 0c9e6e73ff3..4adf5302bfe 100644
--- a/apps/user_ldap/lib/User/OfflineUser.php
+++ b/apps/user_ldap/lib/User/OfflineUser.php
@@ -146,7 +146,8 @@ class OfflineUser {
*/
public function getDN() {
if ($this->dn === null) {
- $this->fetchDetails();
+ $dn = $this->mapping->getDNByName($this->ocName);
+ $this->dn = ($dn !== false) ? $dn : '';
}
return $this->dn;
}
@@ -212,7 +213,7 @@ class OfflineUser {
*/
public function getHasActiveShares() {
if ($this->hasActiveShares === null) {
- $this->fetchDetails();
+ $this->determineShares();
}
return $this->hasActiveShares;
}
@@ -232,11 +233,6 @@ class OfflineUser {
foreach ($properties as $property => $app) {
$this->$property = $this->config->getUserValue($this->ocName, $app, $property, '');
}
-
- $dn = $this->mapping->getDNByName($this->ocName);
- $this->dn = ($dn !== false) ? $dn : '';
-
- $this->determineShares();
}
/**