16 Oct
2017
16 Oct
'17
1:18 p.m.
Michael Ströder wrote:
Alan DeKok wrote:
If you go through the OpenLDAP client code, you'll see global variables, and all kinds of magic to determine if the LDAP library is initialized. That's bad.
Yes. That's why python-ldap serializes all calls to ldap_initialize() with a module-wide function lock. After that connection-specific locks are used.
And btw: Everybody should really avoid pam_ldap/nss_ldap and use a service like nslcd (aka nss-pam-ldapd) or sssd instead. Ciao, Michael.