[python-ldap] segfault/Abort for operations with unbound connection

Space One space at wechall.net
Wed Dec 2 10:29:38 EST 2015


how can I check if a connection is still valid? Is there some
no-operation which is really fast?
I tried to just use whoami_s() but this segfaults always:

python-ldap 2.4.16-0.1
Python 2.7.3 (default, Jul  2 2014, 15:00:03)
[GCC 4.7.2] on linux2
>>> import ldap
>>> lo = ldap.initialize("ldap://")
>>> lo.unbind_s()
>>> lo.whoami_s()
python: whoami.c:68: ldap_whoami: Assertion `(
(ld)->ldc->ldc_options.ldo_valid == 0x2 )' failed.

Best regards

More information about the python-ldap mailing list