From: Michael S. <mi...@st...> - 2009-03-16 11:36:26
|
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("", "") |