590d18
From c26fec494cc348282d037efb88927f70df17f584 Mon Sep 17 00:00:00 2001
590d18
From: Martin Babinsky <mbabinsk@redhat.com>
590d18
Date: Fri, 4 Sep 2015 15:14:48 +0200
590d18
Subject: [PATCH] load RA backend plugins during standalone CA install on
590d18
 CA-less IPA master
590d18
590d18
CA-less IPA master has 'ra_plugin' set to 'none' in IPA config. When setting
590d18
up Dogtag CA on the master we must override this setting in order to load
590d18
dogtag backend plugins and succesfully complete CA installation.
590d18
590d18
https://fedorahosted.org/freeipa/ticket/5288
590d18
590d18
Reviewed-By: Jan Cholasta <jcholast@redhat.com>
590d18
---
590d18
 install/tools/ipa-ca-install | 4 +++-
590d18
 1 file changed, 3 insertions(+), 1 deletion(-)
590d18
590d18
diff --git a/install/tools/ipa-ca-install b/install/tools/ipa-ca-install
590d18
index 8b1cea8d557f315ae38c2448e816ca0b2557077f..6564e4d0304d4e189b133c495b75f200b04e2988 100755
590d18
--- a/install/tools/ipa-ca-install
590d18
+++ b/install/tools/ipa-ca-install
590d18
@@ -160,7 +160,9 @@ def install_master(safe_options, options):
590d18
     if not dsinstance.DsInstance().is_configured():
590d18
         sys.exit("IPA server is not configured on this system.\n")
590d18
 
590d18
-    api.bootstrap(in_server=True)
590d18
+    # override ra_plugin setting read from default.conf so that we have
590d18
+    # functional dogtag backend plugins during CA install
590d18
+    api.bootstrap(in_server=True, ra_plugin='dogtag')
590d18
     api.finalize()
590d18
 
590d18
     dm_password = options.password
590d18
-- 
590d18
2.5.1
590d18