aboutsummaryrefslogtreecommitdiffstats
path: root/apps/user_ldap/lib/Command
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@arthur-schiwon.de>2020-03-18 17:40:23 +0100
committerArthur Schiwon <blizzz@arthur-schiwon.de>2020-04-14 12:58:28 +0200
commit84619a5b9c58ec7f4e3d7faea8c60a187cb61243 (patch)
tree2572e5f939f8c6bd76b4611c432aad3721b0b62e /apps/user_ldap/lib/Command
parente4d378d01e67c41fa64a12662128ba25a0b27133 (diff)
downloadnextcloud-server-84619a5b9c58ec7f4e3d7faea8c60a187cb61243.tar.gz
nextcloud-server-84619a5b9c58ec7f4e3d7faea8c60a187cb61243.zip
use serverControls directly with LDAP calls, fixes 19127
- adapters for PHP API version to Support PHP < 7.3 - switch to pass only one base per search - cookie logic is moved from Access to API adapters Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Diffstat (limited to 'apps/user_ldap/lib/Command')
-rw-r--r--apps/user_ldap/lib/Command/CheckUser.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/user_ldap/lib/Command/CheckUser.php b/apps/user_ldap/lib/Command/CheckUser.php
index 430e9c35960..c34b396291c 100644
--- a/apps/user_ldap/lib/Command/CheckUser.php
+++ b/apps/user_ldap/lib/Command/CheckUser.php
@@ -148,7 +148,7 @@ class CheckUser extends Command {
$attrs = $access->userManager->getAttributes();
$user = $access->userManager->get($uid);
$avatarAttributes = $access->getConnection()->resolveRule('avatar');
- $result = $access->search('objectclass=*', [$user->getDN()], $attrs, 1, 0);
+ $result = $access->search('objectclass=*', $user->getDN(), $attrs, 1, 0);
foreach ($result[0] as $attribute => $valueSet) {
$output->writeln(' ' . $attribute . ': ');
foreach ($valueSet as $value) {