Any example of Server/Client Side Sorting?
Zhang Huangbin
zhbmaillistonly at gmail.com
Thu May 14 16:03:30 CEST 2009
Michael Ströder wrote:
> Zhang Huangbin wrote:
>
>> Any exist python module/function to sort ldap search results?
>
> Well, why do you really need that? I don't have client-side sorting in
> web2ldap because it won't scale with large search results. Some of my
> customers have more than 100k person/user entries in their directories.
>
I have 100+ accounts in LDAP, but they are not listed orderly. like this:
dn: mail=www2 at xxx,----
dn: mail=www5 at xxx,----
dn: mail=www3 at xxx,----
dn: mail=www at xxx,----
I just want to make them listed orderly like this:
dn: mail=www at xxx,----
dn: mail=www2 at xxx,----
dn: mail=www3 at xxx,----
dn: mail=www5 at xxx,----
Do you make them listed in the original order?
>> Tring to learn ldap programing from web2ldap now. Thanks for your great
>> program. :)
>>
>
> Bear in mind that I started learning Python when the first code was
> written almost 11 years ago. So I have to admit that many parts are
> really ugly code and not really good programming examples.
Got it. thanks for your remind :)
--
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