2009/3/20 Michael Ströder
> Your patch and a couple of other minor changes are now in CVS HEAD.
errors.c still looks the same, has the patch been submitted?
http://python-ldap.cvs.sourceforge.net/viewvc/python-ldap/python-ldap/Modules/errors.c?view=markup
--
Thanks,
Sean Burf
came with my distro.
> Sean Burford wrote:
> > When LDAPError receives an errnum from ldap_get_option(l,
> > LDAP_OPT_ERROR_NUMBER, &errnum) that is out of bounds it causes a
> > segfault. I have attached a script that triggers it and patch that
> > fixes it.
&
"/usr/lib/python2.4/site-packages/ldap/ldapobject.py", line 97, in
_ldap_call
result = func(*args,**kwargs)
ldap.LDAPError: {'info': 'sync cookie is stale', 'desc': 'Content Sync
Refresh Required'}
--
Thanks,
Sean Burford
--- python-ldap-2.3.1/
serverctrls=[('1.3.6.1.4.1.4203.1.9.1.3', 0,
'01\x04,csn=20090317224602Z#00#00#00,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.
--
timeout=60)
rtype, rdata, rmsgid, serverctrls =
conn._ldap_call(conn._l.result3,_ldap.RES_ANY,0,60)
while rtype:
print 'rtype=%s' % rtype
print 'rdata=%s' % rdata
print 'rmsgid=%s' % rmsgid
print 'serverctrls=%s' % serverctrls
print '