From 5a0eed0b1addc777a0506485f40ee611763a15af Mon Sep 17 00:00:00 2001 From: Jarl Gullberg Date: Mon, 20 Feb 2023 19:41:42 +0100 Subject: [PATCH] ipaplatform/debian: fix path to ldap.so bind-dyndb-ldap on Debian installs ldap.so in a subdirectory of /usr/lib to prevent unintentional usage of an unversioned .so. The default settings for FreeIPA on Debian used an incomplete path, resulting in a failure to find ldap.so when bind attempts to start with bind-dyndb-ldap configured. This fixes the default path to use the appropriate location in its multiarch-qualified path. Signed-off-by: Jarl Gullberg Reviewed-By: Timo Aaltonen --- ipaplatform/debian/paths.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ipaplatform/debian/paths.py b/ipaplatform/debian/paths.py index 8ac18d29c..7a8099680 100644 --- a/ipaplatform/debian/paths.py +++ b/ipaplatform/debian/paths.py @@ -79,7 +79,7 @@ class DebianPathNamespace(BasePathNamespace): UPDATE_CA_TRUST = "/usr/sbin/update-ca-certificates" BIND_LDAP_DNS_IPA_WORKDIR = "/var/cache/bind/dyndb-ldap/ipa/" BIND_LDAP_DNS_ZONE_WORKDIR = "/var/cache/bind/dyndb-ldap/ipa/master/" - BIND_LDAP_SO = "ldap.so" + BIND_LDAP_SO = "/usr/lib/{0}/bind/ldap.so".format(MULTIARCH) LIBARCH = "/{0}".format(MULTIARCH) LIBSOFTHSM2_SO = "/usr/lib/{0}/softhsm/libsofthsm2.so".format(MULTIARCH) PAM_KRB5_SO = "/usr/lib/{0}/security/pam_krb5.so".format(MULTIARCH)