summaryrefslogtreecommitdiffstats
path: root/ipalib
diff options
context:
space:
mode:
authorStanislav Laznicka <slaznick@redhat.com>2016-06-09 13:13:24 +0200
committerMartin Basti <mbasti@redhat.com>2016-06-22 17:43:14 +0200
commit9a8c5c9dfd10ab1c0bb66b5f25bf815a43d45f2a (patch)
treea1c01ad54c629530acdf7641a5957213a9c38511 /ipalib
parentbe3ad1ed7a34e90c7107380bb2939f737306ba77 (diff)
downloadfreeipa-9a8c5c9dfd10ab1c0bb66b5f25bf815a43d45f2a.tar.gz
freeipa-9a8c5c9dfd10ab1c0bb66b5f25bf815a43d45f2a.tar.xz
freeipa-9a8c5c9dfd10ab1c0bb66b5f25bf815a43d45f2a.zip
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 <mbasti@redhat.com>
Diffstat (limited to 'ipalib')
-rw-r--r--ipalib/messages.py10
1 files changed, 10 insertions, 0 deletions
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
"""