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