Zhang Huangbin wrote:
> I had the same error here while run Demo/page_control.py:
To all of the people experiencing problems:
Could you please run Demo/page_control.py after applying the attached
patch (which enables debug logging).
To preclude problems in the 64-bit build of OpenLDAP client libs you
could also try paged-search with the command-line tool ldapsearch which
essentially uses the same control encoding/decoding functions in libldap.
Ciao, Michael.
Index: Demo/page_control.py
===================================================================
RCS file: /cvsroot/python-ldap/python-ldap/Demo/page_control.py,v
retrieving revision 1.4
diff -u -r1.4 page_control.py
--- Demo/page_control.py 8 Dec 2006 12:38:39 -0000 1.4
+++ Demo/page_control.py 16 Mar 2009 11:33:41 -0000
@@ -6,8 +6,9 @@
import ldap
from ldap.controls import SimplePagedResultsControl
+ldap.set_option(ldap.OPT_DEBUG_LEVEL,255)
ldap.set_option(ldap.OPT_REFERRALS, 0)
-l = ldap.initialize(url)
+l = ldap.initialize(url,trace_level=2)
l.protocol_version = 3
l.simple_bind_s("", "")
------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
Python-LDAP-dev mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/python-ldap-dev