summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/Auth/LDAP.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/Auth/LDAP.php b/lib/Auth/LDAP.php
index aac6df8..9d0b014 100644
--- a/lib/Auth/LDAP.php
+++ b/lib/Auth/LDAP.php
@@ -1135,7 +1135,9 @@ class LDAP extends Net_LDAP3 {
// LDAP3 search parameters
$opts = array(
'search' => $search,
- 'sort' => $params['sort_by'], // for VLV
+ // T409349: Remove the 'sort' parameter to use default VLV sorting
+ // If the param value is not the same as in VLV, search will not use the index.
+ // 'sort' => $params['sort_by'], // for VLV
);
$result = $this->search_entries($base_dn, $filter, $scope, $attributes, $opts);