From d0ef399e22158daab55f118102a1a7fec590c9d6 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 7f4f6e6c24c8d..8f84db0b45b6c 100644 --- a/apps/user_ldap/lib/User_LDAP.php +++ b/apps/user_ldap/lib/User_LDAP.php @@ -713,7 +713,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) {