Zhang Huangbin wrote:
> 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.

100+ entries are not so many. So you could try sorting the list of
search results retrieved with LDAPObject.ldap_search_ext_s() by invoking
list method .sort(). Make sure you understand how to control the
comparisons.

See item 8. here:
http://docs.python.org/library/stdtypes.html#index-591

Ciao, Michael.

------------------------------------------------------------------------------
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image 
processing features enabled. http://p.sf.net/sfu/kodak-com
_______________________________________________
Python-LDAP-dev mailing list
Python-LDAP-dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/python-ldap-dev

Reply via email to