From 8621eba175bbe967a43bd5be637b321ee246fb1d Mon Sep 17 00:00:00 2001 From: Sebastien Marinier Date: Tue, 28 May 2024 18:49:09 +0200 Subject: [PATCH] Allow LDAP search users with *term* Fix #11540 and #14153 Signed-off-by: Sebastien Marinier --- apps/user_ldap/lib/Access.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/user_ldap/lib/Access.php b/apps/user_ldap/lib/Access.php index 32bc8601121e7..742a7e08cf481 100644 --- a/apps/user_ldap/lib/Access.php +++ b/apps/user_ldap/lib/Access.php @@ -1564,7 +1564,7 @@ private function prepareSearchTerm(string $term): string { if ($term === '') { $result = '*'; } elseif ($allowEnum !== 'no') { - $result = $term . '*'; + $result = '*' . $term . '*'; } return $result; }