aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJuan Pablo Villafáñez <jvillafanez@solidgear.es>2016-07-20 14:15:04 +0200
committerVincent Petry <pvince81@owncloud.com>2016-08-18 11:30:13 +0200
commit81d0273cb4b69b5e8e9bababab89d96ea4ff318b (patch)
tree0be22d54fae93751540458f297a3b8d5e6de1764
parent101902abbfdcc7e2e7ba6664f54b30b129f20ebc (diff)
downloadnextcloud-server-81d0273cb4b69b5e8e9bababab89d96ea4ff318b.tar.gz
nextcloud-server-81d0273cb4b69b5e8e9bababab89d96ea4ff318b.zip
Fix another missing check
-rw-r--r--apps/user_ldap/lib/access.php2
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();
}