From 9e8b1da17aa7bf4c92591ab56c3519a2fc3f0a13 Mon Sep 17 00:00:00 2001 From: eyjhb Date: Sun, 23 Feb 2025 18:19:34 +0100 Subject: [PATCH] fix(user_ldap): sync users even when no display name is set Signed-off-by: eyJhb --- apps/user_ldap/lib/Access.php | 4 ---- 1 file changed, 4 deletions(-) diff --git a/apps/user_ldap/lib/Access.php b/apps/user_ldap/lib/Access.php index aa48f7afedf27..dc66f92f36be9 100644 --- a/apps/user_ldap/lib/Access.php +++ b/apps/user_ldap/lib/Access.php @@ -926,10 +926,6 @@ public function fetchListOfUsers(string $filter, array $attr, ?int $limit = null public function batchApplyUserAttributes(array $ldapRecords): void { $displayNameAttribute = strtolower((string)$this->connection->ldapUserDisplayName); foreach ($ldapRecords as $userRecord) { - if (!isset($userRecord[$displayNameAttribute])) { - // displayName is obligatory - continue; - } $ocName = $this->dn2ocname($userRecord['dn'][0], null, true); if ($ocName === false) { continue;