From 4e38d2ed1235e773d30b53c2b5dccd3e115ec698 Mon Sep 17 00:00:00 2001 From: TKDG2000 <324890600+TKDG2000@users.noreply.github.com> Date: Tue, 13 Oct 2026 11:01:22 +0200 Subject: [PATCH] fix(user_ldap): remove leftover debug log in getUserFromCustomAttribute getUserFromCustomAttribute() logged the plain LDAP search filter at error level on every call. With user_saml's user_id_ldap_mapping this runs on every SAML login and writes an "error" entry containing only the filter (and thus the user's attribute value, e.g. a UPN/email), although the lookup succeeded. The ambiguous case (multiple matches) is still logged as before. Signed-off-by: TKDG2000 <324890600+TKDG2000@users.noreply.github.com> --- apps/user_ldap/lib/User_LDAP.php | 1 - 1 file changed, 1 deletion(-) diff --git a/apps/user_ldap/lib/User_LDAP.php b/apps/user_ldap/lib/User_LDAP.php index e973cbaa503dd..97255f04d7e0c 100644 --- a/apps/user_ldap/lib/User_LDAP.php +++ b/apps/user_ldap/lib/User_LDAP.php @@ -712,7 +712,6 @@ public function getUserFromCustomAttribute(string $attribute, string $searchTerm $filter = "($attribute=$searchTerm)"; $records = $this->access->searchUsers($filter, ['dn']); - $this->logger->error($filter); if (count($records) === 1) { return $this->access->dn2username($records[0]['dn'][0]) ?: null; } elseif (count($records) > 1) {