[python-ldap] whoami_s() result
Dusan Stefanik
stefanik at dsx.cz
Thu Feb 21 22:33:28 CET 2013
I think it is quick and correct solution. The goal is avoiding C error
rather get python exception.
Thanks.
Dusan
On 21/02/13 at 10:09pm, Michael Ströder wrote:
> 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.
>
More information about the python-ldap
mailing list