diff options
author | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2020-03-18 17:40:23 +0100 |
---|---|---|
committer | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2020-04-14 12:58:28 +0200 |
commit | 84619a5b9c58ec7f4e3d7faea8c60a187cb61243 (patch) | |
tree | 2572e5f939f8c6bd76b4611c432aad3721b0b62e /apps/user_ldap/lib/Command | |
parent | e4d378d01e67c41fa64a12662128ba25a0b27133 (diff) | |
download | nextcloud-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.php | 2 |
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) { |