mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
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:
committed by
Rob Crittenden
parent
e06f0cc9b4
commit
5fb9653f4b
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user