|
From: <mi...@st...> - 2002-07-01 14:04:01
|
Michael Str=F6der wrote:
>=20
> libs =3D ldap_r ldap lber sasl
libldap_r allows finer-grained locking for each LDAPObject=20
instance. I've checked in a new ldap/__init__.py and=20
ldap/ldapobject.py which allows to use separate Lock instances for=20
global function calls into LDAP lib and for each LDAPObject=20
instance created.
At the moment you have to create a LDAPObject instance directly=20
for using that (not through ldap.open() or ldap.initialize()).
Example:
l =3D ldap.ldapobject.LDAPObject('ldap://www.openldap.org',ldap_r=3D1)
Also there's a more elegant fall-back if the Python installation=20
used has no thread support (translates to import threading failed).
Please read the changed source and comment!
Please try to build a python-ldap with libldap_r and test!
Also test with Python without thread support!
Ciao, Michael.
|