From 6e4e522e524f40a6b05aeb1cc4b43655ed722e36 Mon Sep 17 00:00:00 2001 From: Fraser Tweedale Date: Wed, 29 Jun 2016 13:18:55 +1000 Subject: 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 --- ipaserver/plugins/cert.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'ipaserver/plugins') 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: -- cgit