diff options
author | Martin Basti <mbasti@redhat.com> | 2016-01-26 13:47:56 +0100 |
---|---|---|
committer | Martin Basti <mbasti@redhat.com> | 2016-01-27 12:54:25 +0100 |
commit | 9a945b201eab40dff7781d3240f046b648644779 (patch) | |
tree | 13f11b8e095ec4e8aa1daf2c1e6b005c6b206ef5 /ipalib/messages.py | |
parent | 840de9bb48b37508e11fc0514761161e7cd0f9ef (diff) | |
download | freeipa-9a945b201eab40dff7781d3240f046b648644779.tar.gz freeipa-9a945b201eab40dff7781d3240f046b648644779.tar.xz freeipa-9a945b201eab40dff7781d3240f046b648644779.zip |
Warn user when ipa *-find reach limit
Truncated entries were silently ignored, now a user receives warning.
https://fedorahosted.org/freeipa/ticket/4022
Reviewed-By: Petr Spacek <pspacek@redhat.com>
Reviewed-By: Gabe Alford <redhatrises@gmail.com>
Diffstat (limited to 'ipalib/messages.py')
-rw-r--r-- | ipalib/messages.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/ipalib/messages.py b/ipalib/messages.py index 078e13f59..e43584b10 100644 --- a/ipalib/messages.py +++ b/ipalib/messages.py @@ -331,6 +331,16 @@ class ExternalCommandOutput(PublicMessage): format = _("%(line)s") +class SearchResultTruncated(PublicMessage): + """ + **13017** Results of LDAP search has been truncated + """ + + errno = 13017 + type = "warning" + format = _("Search result has been truncated to configured search limit.") + + def iter_messages(variables, base): """Return a tuple with all subclasses """ |