Python ldap and syncrepl controls

Sean Burford unix.gurus at gmail.com
Tue Mar 17 23:53:15 CET 2009


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
serverctrls=[('1.3.6.1.4.1.4203.1.9.1.3', 0,
'01\x04,csn=20090317224602Z#000000#00#000000,rid=000\x01\x01\xff')]

So the problem is that the control is lost if it is attached to an
LDAP_RES_INTERMEDIATE, but it is not lost when it is attached to an
LDAP_RES_SEARCH_RESULT.

-- 
Thanks,
Sean Burford
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ldap/attachments/20090317/bf77377a/attachment.html>


More information about the python-ldap mailing list