diff options
author | Martin Basti <mbasti@redhat.com> | 2016-02-19 14:55:34 +0100 |
---|---|---|
committer | Martin Basti <mbasti@redhat.com> | 2016-02-23 17:35:20 +0100 |
commit | c96822f3e5af57f5f1f062a957778c84ad2b520d (patch) | |
tree | b4a7380b82cc90094fc9bdb30da3b4c4d17b7ee2 /ipalib/messages.py | |
parent | 70bd7c880259256840f2d4af181fb3e4ca96fcca (diff) | |
download | freeipa-c96822f3e5af57f5f1f062a957778c84ad2b520d.tar.gz freeipa-c96822f3e5af57f5f1f062a957778c84ad2b520d.tar.xz freeipa-c96822f3e5af57f5f1f062a957778c84ad2b520d.zip |
Warn user if trust is broken
Detect missing ipaNTSecurityIdentifier and print message for a user,
that the trust is broken as result of trust-show and trust-find commands.
https://fedorahosted.org/freeipa/ticket/5665
Reviewed-By: Tomas Babej <tbabej@redhat.com>
Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com>
Diffstat (limited to 'ipalib/messages.py')
-rw-r--r-- | ipalib/messages.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/ipalib/messages.py b/ipalib/messages.py index e43584b10..dbbc34ab1 100644 --- a/ipalib/messages.py +++ b/ipalib/messages.py @@ -341,6 +341,17 @@ class SearchResultTruncated(PublicMessage): format = _("Search result has been truncated to configured search limit.") +class BrokenTrust(PublicMessage): + """ + **13018** Trust for a specified domain is broken + """ + + errno = 13018 + type = "warning" + format = _("Your trust to %(domain)s is broken. Please re-create it by " + "running 'ipa trust-add' again.") + + def iter_messages(variables, base): """Return a tuple with all subclasses """ |