diff options
author | Fraser Tweedale <ftweedal@redhat.com> | 2016-06-29 13:18:55 +1000 |
---|---|---|
committer | Jan Cholasta <jcholast@redhat.com> | 2016-06-29 09:54:18 +0200 |
commit | 6e4e522e524f40a6b05aeb1cc4b43655ed722e36 (patch) | |
tree | f7a139f2dd9928fa3fab157fb6d7c4379e6b37d8 /ipaserver/plugins/cert.py | |
parent | 0078e7a9192a940104d8f6621b33d24d814c109b (diff) | |
download | freeipa-6e4e522e524f40a6b05aeb1cc4b43655ed722e36.tar.gz freeipa-6e4e522e524f40a6b05aeb1cc4b43655ed722e36.tar.xz freeipa-6e4e522e524f40a6b05aeb1cc4b43655ed722e36.zip |
cert-find: fix 'issuer' option
The 'issuer' option of cert-find was recently changed from Str to
DNParam, however, 'ra.find' expects a string and throws when it
receives a DN.
When constructing the dict that gets passed to 'ra.find', turn
DNParams into strings.
Part of: https://fedorahosted.org/freeipa/ticket/5381
Reviewed-By: Jan Cholasta <jcholast@redhat.com>
Diffstat (limited to 'ipaserver/plugins/cert.py')
-rw-r--r-- | ipaserver/plugins/cert.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ipaserver/plugins/cert.py b/ipaserver/plugins/cert.py index 564d582c7..888621fc5 100644 --- a/ipaserver/plugins/cert.py +++ b/ipaserver/plugins/cert.py @@ -1031,6 +1031,8 @@ class cert_find(Search, CertMethod): continue if isinstance(value, datetime.datetime): value = value.strftime(PKIDATE_FORMAT) + elif isinstance(value, DN): + value = unicode(value) ra_options[name] = value if sizelimit is not None: if sizelimit != 0: |