|
From: Zhang H. <zhb...@gm...> - 2009-05-14 09:33:24
|
Hi, all.
Does anyone has working code snippet of server/client side sorting?
I use serverctrls in search_ext_s() like this:
search_ext_s(xxxx, serverctrls = [
ldap.controls.LDAPControl('1.2.840.113556.1.4.473',1,None) ],)
got error msg:
UNAVAILABLE_CRITICAL_EXTENSION: {'info': 'critical extension is not
recognized', 'desc': 'Critical extension is unavailable'}
* Use clientctrls:
search_ext_s(xxxx, clientctrls = [
ldap.controls.LDAPControl('1.2.840.113556.1.4.473',1,None) ],)
got error msg:
NOT_SUPPORTED: {'info': '', 'desc': 'Not Supported'}
My os is Ubuntu 9.04, OpenLDAP-2.4.15-1ubuntu3.
--
Best regards.
Zhang Huangbin
- Open Source Mail Server Solution for RHEL, CentOS, Debian:
http://code.google.com/p/iredmail/
|