This question about LDAP: Answered

Can't sort items

I am battling to sort items. See my example below. I tried a few other attributes as well. It displays everything perfectly but does not sort no matter what sort attributes I try.
%LDAP{
  "objectClass=user"
  base="OU=users,OU=Bruma,DC=karbochem,DC=co,DC=za" 
  cache="10" 
  header="---++ Bruma$nBruma office has $count users in total.$n$n| *Name* | *Mail* | *Telephone* | *Mobile* | *Employee #* | *Title* | *Department* |$n" 
  format="| $displayName | $mail | $telephoneNumber | $mobile | $sAMAccountName| $title | $department |"
  clear="$mobile,$telephoneNumber,$mail,$title,$department"
  sort="displayName"
}%

-- HeinrichVermeulen - 01 Oct 2013

I can see no error in your LDAP query, the sort should work. I have just tested on our wiki and I can change the sort parameters no problem with expected results.

Can you sort successfully on other fields?

-- JulianLevens - 03 Oct 2013

I tried a bunch of attributes. No sorting is done at all. Nothing.

-- HeinrichVermeulen - 03 Oct 2013

Please help!!!! Anybody

-- HeinrichVermeulen - 18 Oct 2013

I found the issue to be a commented line (153). Uncomnented the line and all seems to work correctly. Would really like Michael to confirm this.

-- HeinrichVermeulen - 07 Nov 2013

O sorry, the line is in the Core.pm of this plugin.

-- HeinrichVermeulen - 07 Nov 2013
 

QuestionForm edit

Subject LDAP
Extension LdapNgPlugin
Version Foswiki 1.1.8
Status Answered
Related Topics
Topic revision: r7 - 13 Nov 2013, HeinrichVermeulen - This page was cached on 11 Jan 2018 - 09:20.

The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License