#7941 ipapython/dn_ctypes.py: libldap_r shared library missing
Closed: fixed 4 years ago by cheimes. Opened 4 years ago by abbra.

On Fedora 30 libldap_r.so is part of openldap-devel and is such is not necessary available in the deployment.

/usr/lib/python3.7/site-packages/ipatests/test_ipapython/test_dn.py:10: in <module>
    from ipapython import dn_ctypes
/usr/lib/python3.7/site-packages/ipapython/dn_ctypes.py:18: in <module>
    raise ImportError("libldap_r shared library missing")
E   ImportError: libldap_r shared library missing

We need to switch search of libldap_r to find the proper version of it.


It's not just Fedora 30. I just noticed that F29 also fails when the development packages are not installed.

$ podman run -ti fedora:30 python3
Python 3.7.3 (default, Mar 27 2019, 13:36:35) 
[GCC 9.0.1 20190227 (Red Hat 9.0.1-0.8)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import ctypes.util
>>> ctypes.util.find_library("ldap_r-2")
'libldap_r-2.4.so.2'

Metadata Update from @cheimes:
- Custom field on_review adjusted to https://github.com/freeipa/freeipa/pull/3139
- Issue assigned to cheimes
- Issue set to the milestone: FreeIPA 4.8 (was: FreeIPA 4.7.3)

4 years ago

master:

Metadata Update from @cheimes:
- Issue close_status updated to: fixed
- Issue status updated to: Closed (was: Open)

4 years ago

Login to comment on this ticket.

Metadata