Blame SOURCES/1002-Fix-CA-option-name-for-ipa-cert-request.patch

1495bf
From 6aca3545c847673a7bc3d5120378f896dc420a15 Mon Sep 17 00:00:00 2001
1495bf
From: Fraser Tweedale <ftweedal@redhat.com>
1495bf
Date: Thu, 18 Aug 2016 18:25:49 +1000
1495bf
Subject: [PATCH] Fix CA option name for ipa cert-request
1495bf
1495bf
The cert-request option for specifying the issuer is 'cacn', but
1495bf
certmonger is sending 'ca'.  Use the correct option name.
1495bf
1495bf
Part of: https://fedorahosted.org/certmonger/ticket/51
1495bf
---
1495bf
 src/ipa.c | 4 ++--
1495bf
 1 file changed, 2 insertions(+), 2 deletions(-)
1495bf
1495bf
diff --git a/src/ipa.c b/src/ipa.c
1495bf
index f8abe609a603b614067e56ebe9935472b647ed99..13ea4cadf108a86687ab3f689b1a4dd92e5f8339 100644
1495bf
--- a/src/ipa.c
1495bf
+++ b/src/ipa.c
1495bf
@@ -369,7 +369,7 @@ submit:
1495bf
 	}
1495bf
 	/* Add the requested CA issuer named argument. */
1495bf
 	if (issuer != NULL) {
1495bf
-		cm_submit_x_add_named_arg_s(ctx, "ca", issuer);
1495bf
+		cm_submit_x_add_named_arg_s(ctx, "cacn", issuer);
1495bf
 	}
1495bf
 	/* Tell the server to add entries for a principal if one
1495bf
 	 * doesn't exist yet. */
1495bf
@@ -389,7 +389,7 @@ submit:
1495bf
 		case 3: /* invocation error - permanent */
1495bf
 			if ((i == 3005) && (issuer != NULL)) {
1495bf
 				/* Most likely the server didn't understand the
1495bf
-				 * "ca" argument.  At least, at this
1495bf
+				 * "cacn" argument.  At least, at this
1495bf
 				 * point.  Randomly dropping arguments is not
1495bf
 				 * really an extensible solution, though. */
1495bf
 				issuer = NULL;
1495bf
-- 
1495bf
2.7.4
1495bf