diff --git a/apps/user_ldap/lib/Command/TestUserSettings.php b/apps/user_ldap/lib/Command/TestUserSettings.php
index 88524eded02cc..51cf7c064739e 100644
--- a/apps/user_ldap/lib/Command/TestUserSettings.php
+++ b/apps/user_ldap/lib/Command/TestUserSettings.php
@@ -101,6 +101,8 @@ protected function execute(InputInterface $input, OutputInterface $output): int
$output->writeln('');
$attributeNames = [
+ 'ldapBase',
+ 'ldapBaseUsers',
'ldapExpertUsernameAttr',
'ldapUuidUserAttribute',
'ldapExpertUUIDUserAttr',
@@ -120,11 +122,17 @@ protected function execute(InputInterface $input, OutputInterface $output): int
'ldapAttributeBiography',
'ldapAttributeBirthDate',
'ldapAttributePronouns',
+ 'ldapGidNumber',
+ 'hasGidNumber',
];
$output->writeln('Attributes set in configuration:');
foreach ($attributeNames as $attributeName) {
- if ($connection->$attributeName !== '') {
- $output->writeln("- $attributeName: " . $connection->$attributeName . '');
+ if (($connection->$attributeName !== '') && ($connection->$attributeName !== [])) {
+ if (\is_string($connection->$attributeName)) {
+ $output->writeln("- $attributeName: " . $connection->$attributeName . '');
+ } else {
+ $output->writeln("- $attributeName: " . \json_encode($connection->$attributeName) . '');
+ }
}
}
@@ -134,6 +142,9 @@ protected function execute(InputInterface $input, OutputInterface $output): int
if ($connection->ldapUuidUserAttribute !== 'auto') {
$attrs[] = strtolower($connection->ldapUuidUserAttribute);
}
+ if ($connection->hasGidNumber) {
+ $attrs[] = strtolower($connection->ldapGidNumber);
+ }
$attrs[] = 'memberof';
$attrs = array_values(array_unique($attrs));
$attributes = $access->readAttributes($knownDn, $attrs, $filter);
@@ -170,6 +181,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
$output->writeln('Group information:');
$attributeNames = [
+ 'ldapBaseGroups',
'ldapDynamicGroupMemberURL',
'ldapGroupFilter',
'ldapGroupMemberAssocAttr',