Python-ldap and client-only OpenLDAP

Michael Ströder michael at stroeder.com
Wed Jun 3 01:33:26 CEST 2009


Guillaume Simard wrote:
> 
> I want to build OpenLDAP and Python-LDAP from source.
> However, I can't install Berkeley DB so I installed Open-LDAP with 
> 
> ./configure --disable-slapd --disable-slurpd

Yes, that should be sufficient for python-ldap.

> I then built and installed Python-LDAP.
> 
> However, when I try to import, I get 
> 
>   File "/usr/local/lib/python2.6/site-packages/ldap/__init__.py", line
> 22, in <module>
>     from _ldap import *
> ImportError: /usr/local/lib/python2.6/site-packages/_ldap.so: undefined
> symbol: ber_pvt_opt_on

Which platform is that on? Could you please check with

ldd /usr/local/lib/python2.6/site-packages/_ldap.so

or a similar tool whether libldap(_r) of your OpenLDAP build is
dynamically linked?

Did you adjust the parameters 'library_dirs' and 'include_dirs' in
file setup.cfg to point to your OpenLDAP client lib installation before
running python setup.py build?

> Does Python-LDAP have any dependencies toward the "server" part of
> OpenLDAP ?

No.

Ciao, Michael.



More information about the python-ldap mailing list