Re: ldap.ENCODING_ERROR when trying to use SimplePageResultsControl

2009-03-17 Thread Zhang Huangbin
Michael Ströder wrote: > Aargh! My fault. Thanks David. > Modules/ldapcontrol.c in CVS HEAD should work now. Tested and it *WORKS* now, Thanks David & Michael. :) -- Best regards. Zhang Huangbin - Open Source Mail Server Solution for RHEL/CentOS 5.x: http://code.google.com/p/iredmail/

Re: ldap.ENCODING_ERROR when trying to use SimplePageResultsControl

2009-03-17 Thread Michael Ströder
Michael Ströder wrote: > Zhang Huangbin wrote: >> Michael Ströder wrote: >>> This patch seems to work (already installed at your site ;-). >>> >> Something strange. >> >> The server your tested is CentOS 5.2 x86_64, and it works with your >> patched version. >> >> But on RHEL 5.3 x86_64, it raises

Re: Python ldap and syncrepl controls

2009-03-17 Thread Sean Burford
Hi, If I switch the control from RefreshPersist(3) to RefreshOnly(1) I get an LDAP_RES_SEARCH_RESULT instead of LDAP_RES_INTERMEDIATE carrying the SyncDoneControl. Strangely enough, the LDAP_RES_SEARCH_RESULT makes it back to my code with an intact control: rtype=101 rdata=[] rmsgid=1 serverctrl

Python ldap and syncrepl controls

2009-03-17 Thread Sean Burford
Hi, I've been working on implementing an RFC 4533 syncrepl consumer using python-ldap. I can't work out why I can't get the SyncDoneControl that is returned with the LDAP_RES_SEARCH_RESULT through python-ldap. The SyncDoneControl contains the cookie that is needed for stateful/minimal syncrepl r

Re: ldap.ENCODING_ERROR when trying to use SimplePageResultsControl

2009-03-17 Thread Michael Ströder
Zhang Huangbin wrote: > Michael Ströder wrote: >> This patch seems to work (already installed at your site ;-). >> > Something strange. > > The server your tested is CentOS 5.2 x86_64, and it works with your > patched version. > > But on RHEL 5.3 x86_64, it raises ldap.NO_MEMORY error: Are you s