From ca46bb86c000abc4edadcd0bb08c24183cfaa370 Mon Sep 17 00:00:00 2001 From: Carl Schwan Date: Wed, 13 May 2026 16:14:44 +0200 Subject: [PATCH] chore: Increase debug output for failed ldap search Signed-off-by: Carl Schwan --- apps/user_ldap/lib/Access.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/apps/user_ldap/lib/Access.php b/apps/user_ldap/lib/Access.php index 09fd099b7506a..46fb2a5956afe 100644 --- a/apps/user_ldap/lib/Access.php +++ b/apps/user_ldap/lib/Access.php @@ -1118,7 +1118,13 @@ private function executeSearch( $sr = $this->invokeLDAPMethod('search', $base, $filter, $attr, 0, 0, $pageSize, $cookie); $error = $this->ldap->errno($this->connection->getConnectionResource()); if (!$this->ldap->isResource($sr) || $error !== 0) { - $this->logger->error('Attempt for Paging? ' . print_r($pagedSearchOK, true), ['app' => 'user_ldap']); + $e = new \RuntimeException('Error while executing search.'); + $this->logger->error('Attempt for Paging? ' . print_r($pagedSearchOK, true), [ + 'app' => 'user_ldap', + 'errno' => $error, + 'filter' => $filter, + 'exception' => $e, + ]); return false; }