summaryrefslogtreecommitdiffstats
path: root/ipaserver
diff options
context:
space:
mode:
authorFraser Tweedale <ftweedal@redhat.com>2016-07-01 14:42:37 +1000
committerJan Cholasta <jcholast@redhat.com>2016-07-01 10:05:16 +0200
commit4844eaec197690e21c6cf44743df7f456d0e185d (patch)
tree7cdb9ef977691337b31ba4b7be8f6ea5fb3322a1 /ipaserver
parent2ec59b7f232d9119d32d7a5574efba8965904ee8 (diff)
downloadfreeipa-4844eaec197690e21c6cf44743df7f456d0e185d.tar.gz
freeipa-4844eaec197690e21c6cf44743df7f456d0e185d.tar.xz
freeipa-4844eaec197690e21c6cf44743df7f456d0e185d.zip
Add --cn option to cert-status
Add the 'cacn' option to the cert-status command. Right now there is nothing we need to (or can) do with it, but we add it anyway for future use. Fixes: https://fedorahosted.org/freeipa/ticket/5999 Reviewed-By: Jan Cholasta <jcholast@redhat.com>
Diffstat (limited to 'ipaserver')
-rw-r--r--ipaserver/plugins/cert.py16
1 files changed, 8 insertions, 8 deletions
diff --git a/ipaserver/plugins/cert.py b/ipaserver/plugins/cert.py
index 2f7904cd7..06041d308 100644
--- a/ipaserver/plugins/cert.py
+++ b/ipaserver/plugins/cert.py
@@ -628,17 +628,17 @@ class cert_status(Retrieve, BaseCertMethod, VirtualCommand):
operation = "certificate status"
- def get_options(self):
- for option in super(cert_status, self).get_options():
- if option.name == 'cacn':
- # Dogtag requests are uniquely identified by their
- # number; there is no need to distinguish by CA.
- continue
- yield option
-
def execute(self, request_id, **kw):
ca_enabled_check()
self.check_access()
+
+ # Dogtag requests are uniquely identified by their number;
+ # furthermore, Dogtag (as at v10.3.4) does not report the
+ # target CA in request data, so we cannot check. So for
+ # now, there is nothing we can do with the 'cacn' option
+ # but check if the specified CA exists.
+ self.api.Command.ca_show(kw['cacn'])
+
return dict(
result=self.Backend.ra.check_request_status(str(request_id)),
value=pkey_to_value(request_id, kw),