[python-ldap] 'Missing' OPT_X_TLS_NEVER

Michael Ströder michael at stroeder.com
Fri Mar 6 08:42:53 CET 2015


Aaron C. de Bruyn wrote:
> The short problem: Deploying an app I wrote to one particular machine
> has problems because the ldap module does not have OPT_X_TLS_NEVER
> (AttributeError: 'module' object has no attribute 'OPT_X_TLS_NEVER').
> 
> My guess is that python-ldap doesn't compile in TLS support if there's
> a particular TLS library unavailable.
> [..] Ubuntu 14.04.

How are you building python-ldap? Note that libldap on Debian and probably
Ubuntu is linked against GnuTLS, not OpenSSL. This might make difference in
some options.

I'd check whether the -devel packages are all the same on the different
machines. There has to be some minimal difference somewhere.

>     ldap.OPT_X_TLS_REQUIRE_CERT: ldap.OPT_X_TLS_NEVER,
> AttributeError: 'module' object has no attribute 'OPT_X_TLS_NEVER'

It's not clear to me whether ldap.OPT_X_TLS_REQUIRE_CERT is present but
ldap.OPT_X_TLS_NEVER is not. Or both do not exist?

Ciao, Michael.

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


More information about the python-ldap mailing list