diff options
author | Roger Szabo <roger.szabo@web.de> | 2017-04-07 18:06:50 +0800 |
---|---|---|
committer | Roger Szabo <roger.szabo@web.de> | 2017-04-07 18:06:50 +0800 |
commit | 5fa218051bb7cafe9acfdc223fe6a6d4605dacdc (patch) | |
tree | 97811737204dfcda98124681fe501328e97049d8 /apps/user_ldap/lib | |
parent | 0ea8729d1d3749b8072e7cc11744422d345bb85d (diff) | |
download | nextcloud-server-5fa218051bb7cafe9acfdc223fe6a6d4605dacdc.tar.gz nextcloud-server-5fa218051bb7cafe9acfdc223fe6a6d4605dacdc.zip |
unit test adjustment
Signed-off-by: Roger Szabo <roger.szabo@web.de>
Diffstat (limited to 'apps/user_ldap/lib')
-rw-r--r-- | apps/user_ldap/lib/User/User.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/user_ldap/lib/User/User.php b/apps/user_ldap/lib/User/User.php index cdffaf97446..bf07218d631 100644 --- a/apps/user_ldap/lib/User/User.php +++ b/apps/user_ldap/lib/User/User.php @@ -611,7 +611,7 @@ class User { $uid = $params['uid']; if(isset($uid) && $uid === $this->getUsername()) { //retrieve relevant user attributes - $result = $this->access->search('objectclass=*', $this->dn, ['sn', 'pwdpolicysubentry', 'pwdgraceusetime', 'pwdreset', 'pwdchangedtime']); + $result = $this->access->search('objectclass=*', $this->dn, ['pwdpolicysubentry', 'pwdgraceusetime', 'pwdreset', 'pwdchangedtime']); if(array_key_exists('pwdpolicysubentry', $result[0])) { $pwdPolicySubentry = $result[0]['pwdpolicysubentry']; @@ -628,7 +628,7 @@ class User { $cacheKey = 'ppolicyAttributes' . $ppolicyDN; $result = $this->connection->getFromCache($cacheKey); if(is_null($result)) { - $result = $this->access->search('objectclass=*', $ppolicyDN, ['cn','pwdgraceauthnlimit', 'pwdmaxage', 'pwdexpirewarning']); + $result = $this->access->search('objectclass=*', $ppolicyDN, ['pwdgraceauthnlimit', 'pwdmaxage', 'pwdexpirewarning']); $this->connection->writeToCache($cacheKey, $result); } |