[python-ldap] Assertion Failed Error

Cantu, Liza J lcantu at austin.utexas.edu
Fri Sep 12 23:46:31 CEST 2014


Michael,

I am not to certain about the technical aspects of how ldap works, but I figured out we are actually using openldap version 2.4.23 and Red Hat Enterprise Linux Server release 6.5 (Santiago).

We have also tried using the following command and get the same assertion failed error:
ldap.set_option(ldap.OPT_X_TLS_REQUIRE_CERT, ldap.OPT_X_TLS_NEVER)

Please reply if you have any other suggestions or need more info. I appreciate any help since this is affecting our local VM and deployed versions.

Thank you,
Liza
________________________________
From: Michael Ströder<mailto:michael at stroeder.com>
Sent: ‎9/‎12/‎2014 12:47 PM
To: Cantu, Liza J<mailto:lcantu at austin.utexas.edu>; python-ldap at python.org<mailto:python-ldap at python.org>
Subject: Re: [python-ldap] Assertion Failed Error

Cantu, Liza J wrote:
> python: references.c:33: ldap_first_reference: Assertion `( (ld)->ld_options.ldo_valid == 0x2 )' failed. Aborted
>
> My project uses Python 2.6, Django 1.4.14, and python ldap 2.3.12.

Which libldap (OpenLDAP client libs) is this? And the OS?

Note that python-ldap 2.3.12 was released four years ago and that some strange
things can happen on various platforms because e.g. Debian and RedHat don't
link libldap against OpenSSL. They are using GnuTLS (Debian) or libnss (RHEL
6.x) instead.

So I'd recommend to try without TLS to rule out those issues.

Ciao, Michael.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ldap/attachments/20140912/58085ce1/attachment.html>


More information about the python-ldap mailing list