feat(user_ldap): Add config for partial search compatibility with ActiveDirectory

Signed-off-by: Marcel Klehr <mklehr@gmx.net>
This commit is contained in:
Marcel Klehr 2026-02-10 13:26:47 +01:00
parent ebcc786841
commit 63195fbf33

View file

@ -1568,7 +1568,12 @@ class Access extends LDAPUtility {
if ($term === '') {
$result = '*';
} elseif ($allowEnum) {
$result = $term . '*';
$activeDirectoryCompat = $this->appConfig->getValueBool('user_ldap', 'partial_search_active_directory_compatibility', false);
if ($activeDirectoryCompat) {
$result = '*' . $term . '*';
} else {
$result = $term . '*';
}
}
return $result;
}