mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
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:
parent
ac6568dcf5
commit
64dc92ccb4
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user