Any example of Server/Client Side Sorting?

Zhang Huangbin zhbmaillistonly at gmail.com
Thu May 14 14:37:50 CEST 2009


Michael Ströder wrote:
>
> The error message is pretty clear: This particular LDAP server does not
> support server-side sorting.
>   

I checked the rootdse, neither server side sort nor client side sort is 
supported:

----
supportedControl: 2.16.840.1.113730.3.4.18
supportedControl: 2.16.840.1.113730.3.4.2
supportedControl: 1.3.6.1.4.1.4203.1.10.1
supportedControl: 1.2.840.113556.1.4.319
supportedControl: 1.2.826.0.1.3344810.2.3
supportedControl: 1.3.6.1.1.13.2
supportedControl: 1.3.6.1.1.13.1
supportedControl: 1.3.6.1.1.12
supportedExtension: 1.3.6.1.4.1.1466.20037
supportedExtension: 1.3.6.1.4.1.4203.1.11.1
supportedExtension: 1.3.6.1.4.1.4203.1.11.3
supportedExtension: 1.3.6.1.1.8
----

> Besides that you should read RFC 2891 to learn how to generate the
> controlValue which specifies which attribute and matching rule
> (optional) is used for sorting and whether you want reverse order
> (optional). You could try to generate the controlValue with module pyasn1.

Got it. Thanks Michael :)


-- 
Best regards.

Zhang Huangbin

- Open Source Mail Server Solution for RHEL, CentOS, Debian:
  http://code.google.com/p/iredmail/





More information about the python-ldap mailing list