diff options
author | Juan Pablo Villafáñez <jvillafanez@solidgear.es> | 2016-07-20 14:15:04 +0200 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2016-08-18 11:30:13 +0200 |
commit | 81d0273cb4b69b5e8e9bababab89d96ea4ff318b (patch) | |
tree | 0be22d54fae93751540458f297a3b8d5e6de1764 | |
parent | 101902abbfdcc7e2e7ba6664f54b30b129f20ebc (diff) | |
download | nextcloud-server-81d0273cb4b69b5e8e9bababab89d96ea4ff318b.tar.gz nextcloud-server-81d0273cb4b69b5e8e9bababab89d96ea4ff318b.zip |
Fix another missing check
-rw-r--r-- | apps/user_ldap/lib/access.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/user_ldap/lib/access.php b/apps/user_ldap/lib/access.php index 9fb14d20545..91ce0102642 100644 --- a/apps/user_ldap/lib/access.php +++ b/apps/user_ldap/lib/access.php @@ -176,7 +176,7 @@ class Access extends LDAPUtility implements user\IUserTools { //in case an error occurs , e.g. object does not exist return false; } - if (empty($attr)) { + if (empty($attr) && ($filter === 'objectclass=*' || $this->ldap->countEntries($cr, $rr) === 1)) { \OCP\Util::writeLog('user_ldap', 'readAttribute: '.$dn.' found', \OCP\Util::DEBUG); return array(); } |