Load libldap_r-*.so.2

libldap_r.so is only available in the OpenLDAP development packages. The
openldap package provides libldap_r-*.so.2.

Fixes: https://pagure.io/freeipa/issue/7941
Signed-off-by: Christian Heimes <cheimes@redhat.com>
Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com>
This commit is contained in:
Christian Heimes 2019-05-13 15:43:18 +02:00
parent ac6568dcf5
commit 64dc92ccb4

View File

@ -12,8 +12,8 @@ import six
__all__ = ("str2dn", "dn2str", "DECODING_ERROR", "LDAPError")
# load reentrant libldap
ldap_r_lib = ctypes.util.find_library("ldap_r")
# load reentrant ldap client library (libldap_r-*.so.2)
ldap_r_lib = ctypes.util.find_library("ldap_r-2")
if ldap_r_lib is None:
raise ImportError("libldap_r shared library missing")
try: