Skip to content

Commit e8ecddd

Browse files
committed
Prepend wildcard to the LDAP search term
It makes the LDAP user/group search behaves consistently with database backend See https://github.com/nextcloud/server/blob/3f4941e48aead48bacc7077e2819b492d1394778/lib/private/Group/Database.php#L270-L274 Signed-off-by: Rémi Alvergnat <remi.alvergnat@gfi.fr>
1 parent 3f4941e commit e8ecddd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

apps/user_ldap/lib/Access.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1557,7 +1557,7 @@ private function prepareSearchTerm($term) {
15571557
if ($term === '') {
15581558
$result = '*';
15591559
} else if ($allowEnum !== 'no') {
1560-
$result = $term . '*';
1560+
$result = '*' . $term . '*';
15611561
}
15621562
return $result;
15631563
}

0 commit comments

Comments
 (0)