From 9a8c5c9dfd10ab1c0bb66b5f25bf815a43d45f2a Mon Sep 17 00:00:00 2001 From: Stanislav Laznicka Date: Thu, 9 Jun 2016 13:13:24 +0200 Subject: host/service-show/find shouldn't fail on invalid certificate host/service-show/find methods would have failed if the first certificate they had in userCertificate attribute were invalid. Expected behavior is that they just show the rest of the reqested attributes. https://fedorahosted.org/freeipa/ticket/5797 Reviewed-By: Martin Basti --- ipalib/messages.py | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'ipalib') diff --git a/ipalib/messages.py b/ipalib/messages.py index d8cee9e83..7288606f6 100644 --- a/ipalib/messages.py +++ b/ipalib/messages.py @@ -461,6 +461,16 @@ class ServerRemovalWarning(PublicMessage): type = "warning" +class CertificateInvalid(PublicMessage): + """ + ***13029 Failed to parse a certificate + """ + errno = 13029 + type = "error" + format = _("%(subject)s: Invalid certificate. " + "%(reason)s") + + def iter_messages(variables, base): """Return a tuple with all subclasses """ -- cgit