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; }