Item12366: Sorting of LDAP output disabled
Priority: Normal
Current State: Confirmed
Released In: n/a
Target Release:
Applies To: Extension
Component: LdapNgPlugin
Branches: trunk
Sorting of the LDAP output seems to have been disabled deliberately in one of the last version (tested with version 16128 from 2012-11-29). Neither the release notes nor the syntax documentation mention this.
LdapNgPlugin/Core.pm
line 153:
#@entries = $search->sorted(@theSort); SMELL: out of order
--
MartinKaufmann - 23 Jan 2013
Yes this has to be disabled because Net::LDAP isn't able to sort entries found while following references. These all are gathered in one @list doing sub-queries. Calling the
Net::LDAP::Search::sorted()
method will then discard some or even all previously found entries when the last sub-query was empty. This can only be solved by "borrowing" code from Net::LDAP::Search and make it work on
all entries found, not only on some.
For now I will disable the call to
sorted
as not returning any result is even worse.
--
MichaelDaum - 18 Mar 2014