summarylogtreecommitdiffstats
path: root/0003-client-install-do-not-assume-etc-krb5.conf.d-exists.patch
blob: 53c4390e0358889778d6e48e88c126c1f8def72a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
From c13db8fcdf05027ac9ed27780004d0c03ecf6198 Mon Sep 17 00:00:00 2001
From: Jan Cholasta <jcholast@redhat.com>
Date: Tue, 2 Aug 2016 13:49:36 +0200
Subject: [PATCH 3/3] client install: do not assume /etc/krb5.conf.d exists

---
 client/ipa-client-install | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/client/ipa-client-install b/client/ipa-client-install
index 4a263b3..ea71076 100755
--- a/client/ipa-client-install
+++ b/client/ipa-client-install
@@ -1073,8 +1073,10 @@ def configure_krb5_conf(cli_realm, cli_domain, cli_server, cli_kdc, dnsok,
     krbconf.setIndent(("","  ","    "))
 
     opts = [{'name':'comment', 'type':'comment', 'value':'File modified by ipa-client-install'},
-            {'name':'empty', 'type':'empty'},
-            {'name':'includedir', 'type':'option', 'value':paths.COMMON_KRB5_CONF_DIR, 'delim':' '}]
+            {'name':'empty', 'type':'empty'}]
+
+    if os.path.exists(paths.COMMON_KRB5_CONF_DIR):
+        opts.append({'name':'includedir', 'type':'option', 'value':paths.COMMON_KRB5_CONF_DIR, 'delim':' '})
 
     # SSSD include dir
     if options.sssd:
-- 
2.7.4