[Freeipa-devel] [PATCH] 0066 Load server plugins in certmonger renewal helper

Fraser Tweedale ftweedal at redhat.com
Wed Jun 8 05:22:39 UTC 2016


Client/server plugin split apparently broke the certmonger renewal
helper (https://fedorahosted.org/freeipa/ticket/5943).  Please
review attached patch - hopefully it is correct way to fix it.

Thanks,
Fraser
-------------- next part --------------
From 88845c834534eb4bb3b3755cef4f3d4fbb1513b8 Mon Sep 17 00:00:00 2001
From: Fraser Tweedale <ftweedal at redhat.com>
Date: Wed, 8 Jun 2016 15:18:00 +1000
Subject: [PATCH] Load server plugins in certmonger renewal helper

The certmonger renewal helper needs to load server plugins to
operate.  Initialise the API with in_server=True.

Fixes: https://fedorahosted.org/freeipa/ticket/5943
---
 install/certmonger/dogtag-ipa-ca-renew-agent-submit | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/install/certmonger/dogtag-ipa-ca-renew-agent-submit b/install/certmonger/dogtag-ipa-ca-renew-agent-submit
index 5a6b7fa2285480d76f7ecb66152692b0722d08d7..3f7333c0e0bb6059e8b3791ef5230c7e5663d2eb 100755
--- a/install/certmonger/dogtag-ipa-ca-renew-agent-submit
+++ b/install/certmonger/dogtag-ipa-ca-renew-agent-submit
@@ -445,7 +445,7 @@ def main():
         'ipaCACertRenewal':     renew_ca_cert,
     }
 
-    api.bootstrap(context='renew')
+    api.bootstrap(in_server=True, context='renew')
     api.finalize()
 
     operation = os.environ.get('CERTMONGER_OPERATION')
-- 
2.5.5



More information about the Freeipa-devel mailing list