mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
Merge pull request #58280 from nextcloud/backport/58220/stable32
[stable32] feat(user_ldap): Add config for partial search compatibility with ActiveDirectory
This commit is contained in:
commit
532d4c8242
1 changed files with 6 additions and 1 deletions
|
|
@ -1576,7 +1576,12 @@ class Access extends LDAPUtility {
|
|||
if ($term === '') {
|
||||
$result = '*';
|
||||
} elseif ($allowEnum !== 'no') {
|
||||
$result = $term . '*';
|
||||
$activeDirectoryCompat = $this->appConfig->getValueBool('user_ldap', 'partial_search_active_directory_compatibility', false);
|
||||
if ($activeDirectoryCompat) {
|
||||
$result = '*' . $term . '*';
|
||||
} else {
|
||||
$result = $term . '*';
|
||||
}
|
||||
}
|
||||
return $result;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue