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