|
From: <mi...@st...> - 2002-06-29 11:50:26
|
Joe Little wrote:
>=20
> On Friday, June 28, 2002, at 12:00 PM, Michael Str=F6der wrote:
>=20
>> Note that most people still build against OpenLDAP 2.0.x. I don't want=
=20
>> to mandate OpenLDAP 2.1.x at the moment because there will surely be=20
>> more complaints about this than about bad performance.
>=20
> Agreed. I talked with Luke about 2.1's improvements in this area, and h=
e=20
> replied that 2.0 already was thread safe. I'll be diving into 2.1, but =
> 2.0 should be sufficient for coding thread safe python-ldap once it use=
s=20
> libldap_r.
>=20
>> Caveats:
>> 1. libldap_r has not been tested with python-ldap yet.
>> 2. libldap_r is not fully implemented in OpenLDAP 2.0.x. AFAIK in 2.0 =
>> it's just a hack to make slurpd work.
>=20
> What I understood from Luke is that it has been completed in 2.x, with =
> bugs worked out along the way up to 2.0.25.
I tried to build python-ldap against libldap_r from OpenLDAP's=20
REL_ENG_2 branch by simply modifying setup.cfg:
libs =3D ldap_r lber sasl
The build went fine. ldd shows output like expected:
$ ldd build/lib.linux-i686-2.2/_ldap.so
libldap_r.so.2 =3D> /usr/lib/libldap_r.so.2 (0x4001f000)
liblber.so.2 =3D> /usr/lib/liblber.so.2 (0x4004b000)
libsasl.so.7 =3D> /usr/lib/libsasl.so.7 (0x40055000)
[..]
But import does not work.
$ python -c "import ldap"
Traceback (most recent call last):
File "<string>", line 1, in ?
File "/usr/lib/python2.2/site-packages/ldap/__init__.py", line=20
5, in ?
from _ldap import *
ImportError: /usr/lib/python2.2/site-packages/_ldap.so: undefined=20
symbol: ldap_first_reference
Anyone willing to dig into this?
Ciao, Michael.
|