The Identity, Policy and Audit system
CentOS Sources
2016-11-03 403b09ab980c02ef36095973349a13e0181c794a
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
30
31
32
33
From 2dab553e06ce7b01a285c9d80866a6efa80d254d Mon Sep 17 00:00:00 2001
From: Tomas Krizek <tkrizek@redhat.com>
Date: Fri, 19 Aug 2016 12:16:54 +0200
Subject: [PATCH] Fix ipa-server-install in pure IPv6 environment
 
Installation in pure IPv6 environment failed because pki-tomcat tried to use
IPv4 loopback. Configuring tomcat to use IPv6 loopback instead of IPv4 fixes
this issue.
 
https://fedorahosted.org/freeipa/ticket/4291
 
Reviewed-By: Martin Basti <mbasti@redhat.com>
---
 ipaserver/install/cainstance.py | 4 ++++
 1 file changed, 4 insertions(+)
 
diff --git a/ipaserver/install/cainstance.py b/ipaserver/install/cainstance.py
index 070498fe8a394802ea55f848a268e2b6563ec472..e94fec5f6fd898b66dc12407be6e3f671ac3f4de 100644
--- a/ipaserver/install/cainstance.py
+++ b/ipaserver/install/cainstance.py
@@ -577,6 +577,10 @@ class CAInstance(DogtagInstance):
             config.set("CA", "pki_external_ca_cert_chain_path", cert_chain_file.name)
             config.set("CA", "pki_external_step_two", "True")
 
+        # PKI IPv6 Configuration
+        config.add_section("Tomcat")
+        config.set("Tomcat", "pki_ajp_host", "::1")
+
         # Generate configuration file
         with open(cfg_file, "wb") as f:
             config.write(f)
-- 
2.7.4