Re: ldap.ENCODING_ERROR when trying to use SimplePageResultsControl

2009-03-03 Thread Russell Jackson
Michael Ströder wrote: > It seems you're running on a 64-bit platform. I did never test > python-ldap on such a system. Which version of python-ldap is it? Did > you compile it yourself? Which versions of OpenLDAP libs are used? > Just as a data point, I've been running python-ldap (from ports) o

Re: ldap.ENCODING_ERROR when trying to use SimplePageResultsControl

2009-03-03 Thread Michael Ströder
Joel Heenan wrote: > Hi Michael, > > Comments inline: > >> Michael Ströder wrote: >> Joel Heenan wrote: >> >>> File "/usr/lib64/python2.4/site-packages/ldap/controls.py", line >> 78, >>> in encodeControlValue >>> >>> return _ldap.encode_page_control(size,cookie) >>> >>> ldap.ENCODING_ERROR

RE: ldap.ENCODING_ERROR when trying to use SimplePageResultsControl

2009-03-03 Thread Joel Heenan
Hi Michael, Comments inline: > Michael Ströder wrote: > Joel Heenan wrote: > > > File "/usr/lib64/python2.4/site-packages/ldap/controls.py", line > 78, > > in encodeControlValue > > > > return _ldap.encode_page_control(size,cookie) > > > > ldap.ENCODING_ERROR > > It seems you're running on

Re: ldap.ENCODING_ERROR when trying to use SimplePageResultsControl

2009-03-03 Thread Michael Ströder
Joel Heenan wrote: > > I'm trying to use SimplePagedResultsControl so I can pull some data out > of Active Directory that has a Server-Limit set. I got most of my code > from this guide http://www.novell.com/coolsolutions/tip/18274.html Since I posted this code I think it works. ;-) > File "/u