mirror of
https://github.com/nextcloud/server.git
synced 2026-03-03 05:51:07 -05:00
fix(LDAP): escape DN on check-user
the DN has to be escaped differently when used as a base and we were missing it here in the search method call in the check-user command. Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
This commit is contained in:
parent
b392041b42
commit
4d12cd6eac
1 changed files with 2 additions and 1 deletions
|
|
@ -144,7 +144,8 @@ 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);
|
||||
$baseDn = $this->helper->DNasBaseParameter($user->getDN());
|
||||
$result = $access->search('objectclass=*', $baseDn, $attrs, 1, 0);
|
||||
foreach ($result[0] as $attribute => $valueSet) {
|
||||
$output->writeln(' ' . $attribute . ': ');
|
||||
foreach ($valueSet as $value) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue