From 64dc92ccb4f057ec49070b323f3b827d8642cece Mon Sep 17 00:00:00 2001 From: Christian Heimes Date: Mon, 13 May 2019 15:43:18 +0200 Subject: [PATCH] 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 Reviewed-By: Alexander Bokovoy --- ipapython/dn_ctypes.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ipapython/dn_ctypes.py b/ipapython/dn_ctypes.py index 8417dc534..fd073a6f1 100644 --- a/ipapython/dn_ctypes.py +++ b/ipapython/dn_ctypes.py @@ -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: