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 <rcritten@redhat.com>
This commit is contained in:
Matthew Davis authored and Rob Crittenden committed 2022-06-14 13:17:37 -04:00
1 parent e06f0cc9b4
commit 5fb9653f4b
1 file changed
+2
+2
View File
@@ -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',