diff --git a/apps/user_ldap/lib/Access.php b/apps/user_ldap/lib/Access.php index 8c9128f1c56..09fd099b750 100644 --- a/apps/user_ldap/lib/Access.php +++ b/apps/user_ldap/lib/Access.php @@ -1568,8 +1568,8 @@ class Access extends LDAPUtility { if ($term === '') { $result = '*'; } elseif ($allowEnum) { - $activeDirectoryCompat = $this->appConfig->getValueBool('user_ldap', 'partial_search_active_directory_compatibility', false); - if ($activeDirectoryCompat) { + $usePrefixWildcard = $this->appConfig->getValueBool('user_ldap', 'partial_search_with_prefix_wildcard', false); + if ($usePrefixWildcard) { $result = '*' . $term . '*'; } else { $result = $term . '*';