[python-ldap] whoami_s() result

Michael Ströder michael at stroeder.com
Thu Feb 21 22:09:19 CET 2013

Dusan Stefanik wrote:
> sorry, forgot this important information:
> Tested on debian stable(squeeze):
> python-ldap 2.3.11 + python 2.6.6 + libldap 2.4.23
> Also tested on Debian testing(wheezy):
> python-ldap 2.4.10 + python 2.7.3 + libldap 2.4.31
> Also tested on Ubuntu precise:
> python-ldap 2.4.10 (from pypi) + python 2.7.3 + libldap 2.4.28

Since this issue is rather how to detect a programmer's error I'd prefer to
simply add an extra check to SimpleLDAPObject._ldap_call(). This check will
also be hidden behind a "if __debug__" to let Python strip it out when running
in optimized mode.

Let me know what you think.

Please note that 2.3.x is not maintained anymore. So for this release series
the only solution is to write correct code. ;-)

Ciao, Michael.

> On 21/02/13 at 05:26pm, Michael Ströder wrote:
>> Dusan Stefanik wrote:
>>> I discovered some odd behaviour with whoami_s().
>> Which version of python-ldap and which version of OpenLDAP libs are you using?
>> Ciao, Michael.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3883 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://mail.python.org/pipermail/python-ldap/attachments/20130221/e902d1a3/attachment-0001.bin>

More information about the python-ldap mailing list