diff options
| author | Christian Heimes <cheimes@redhat.com> | 2019-04-08 08:05:52 +0200 |
|---|---|---|
| committer | Christian Heimes <cheimes@redhat.com> | 2019-04-26 12:53:23 +0200 |
| commit | 2a459ce0f2c5e2af2dbe028afcf1d4e83875ce60 (patch) | |
| tree | 8d71dfc6611ea433511d257282e21dac6aa0ed1d /ipaclient | |
| parent | c3144111306a2886893b598db695026fc05c8a1f (diff) | |
| download | freeipa-2a459ce0f2c5e2af2dbe028afcf1d4e83875ce60.tar.gz freeipa-2a459ce0f2c5e2af2dbe028afcf1d4e83875ce60.tar.xz freeipa-2a459ce0f2c5e2af2dbe028afcf1d4e83875ce60.zip | |
Make python-ldap optional for PyPI packages
python-ldap is a Python package with heavy C extensions. In order to
build python-ldap, not only OpenLDAP development headers are necessary,
but also OpenSSL, Cyrus SASL, and MIT KRB5 development headers.
A fully functional ipaclient doesn't need an LDAP driver. It talks JSON
RPC over HTTPS to a server. python-ldap is only used by ipapython.dn.DN
to convert a string to a DN with ldap_str2dn(). The function is simple
and can be wrapped with ctypes in a bunch of lines.
Related: https://pagure.io/freeipa/issue/6468
Signed-off-by: Christian Heimes <cheimes@redhat.com>
Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com>
Diffstat (limited to 'ipaclient')
| -rw-r--r-- | ipaclient/setup.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ipaclient/setup.py b/ipaclient/setup.py index 8eb9aeedc..06d1567f3 100644 --- a/ipaclient/setup.py +++ b/ipaclient/setup.py @@ -64,6 +64,7 @@ if __name__ == '__main__': "install": ["ipaplatform"], "otptoken_yubikey": ["python-yubico", "pyusb"], "csrgen": ["cffi", "jinja2"], + "ldap": ["python-ldap"], # ipapython.ipaldap }, zip_safe=False, ) |
