From 5fb9653f4b5fe287344a5e3e6ee5ff2c51d37f5f Mon Sep 17 00:00:00 2001 From: Matthew Davis Date: Mon, 6 Jun 2022 20:02:20 -0400 Subject: [PATCH] Create missing SSSD_PUBCONF_KRB5_INCLUDE_D_DIR One some distributions, namely Suse, the SSSD_PUBCONF_KRB5_INCLUDE_D_DIR does not exist by default. Ipa-client-install will fail to initialize the kerberos ticket and error when this directory does not exist. This patch simply creates the directory if it does not exist before adding the include statement into /etc/krb5.conf Fixes: https://pagure.io/freeipa/issue/9174 Signed-off-by: Matthew Davis github@virtual.drop.net Reviewed-By: Rob Crittenden --- ipaclient/install/client.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ipaclient/install/client.py b/ipaclient/install/client.py index ba467c9f6..920c517d4 100644 --- a/ipaclient/install/client.py +++ b/ipaclient/install/client.py @@ -677,6 +677,8 @@ def configure_krb5_conf( # SSSD include dir if configure_sssd: + if not os.path.exists(paths.SSSD_PUBCONF_KRB5_INCLUDE_D_DIR): + os.makedirs(paths.SSSD_PUBCONF_KRB5_INCLUDE_D_DIR, mode=0o755) opts.extend([ { 'name': 'includedir',