Segmention fault on redhat 9 on ldap_simple_bind_s

Jens Vagelpohl jens at
Tue Sep 30 13:58:09 CEST 2003

> 	After read  mails from  archives, I sucessfully install
> python-ldap on redhat 9. (install tgz of openldap-2.1.22
> Modify source with  python-ldap_libs.patch ( -libs = ldap_r lber sasl2
> ssl crypto
> +libs = ldap_r ldap lber sasl2 ssl crypto ) before that I have an error
> messages on import undefined
>  symbol: ldap_first_reference)

A guy here at work replaced "ldap_r" with "ldap" in the LIBS line and 
it worked. He traced it to a broken Makefile in OpenLDAP itself (even 
in the latest RPMs) that did not mention all the right things (don't 
have the details here).

> Now I have a segmentation fault on simple bind
>>>> import ldap
>>>> l ='ip_address')
>>>> l.simple_bind_s('','')
> Erreur de segmentation is deprecated. Read the docs and use ldap.initialize instead. 
Michael has produced wonderful python-style documentation, see

> I try to install the package on a debian and I have
>  python build
> Traceback (most recent call last):
>   File "", line 10, in ?
>     from distutils.core import setup, Extension
> ImportError: No module named distutils.core

I don't do Debian. I bet Debian's python package might be split up in 
all kinds of pieces and you need to install more of them. They're weird 
that way.


More information about the python-ldap mailing list