summaryrefslogtreecommitdiffstats
path: root/ipalib/errors.py
diff options
context:
space:
mode:
authorAbhijeet Kasurde <akasurde@redhat.com>2016-04-20 11:09:53 +0530
committerMartin Basti <mbasti@redhat.com>2016-04-28 17:04:37 +0200
commit3d07c889ce21ffe1d8baec3fd0c13bc67aa1d725 (patch)
tree64de24101dfd378cf73ebc76bfb0f05abf461f3f /ipalib/errors.py
parent05cb4ba4e97d8cbffaf1c16451c488db4a90a878 (diff)
downloadfreeipa-3d07c889ce21ffe1d8baec3fd0c13bc67aa1d725.tar.gz
freeipa-3d07c889ce21ffe1d8baec3fd0c13bc67aa1d725.tar.xz
freeipa-3d07c889ce21ffe1d8baec3fd0c13bc67aa1d725.zip
Added fix for notifying user about locked user account in WebUI
User in now notified about "Locked User account" message instead of "The password or username you entered is incorrect" or any generic error message Fixes : https://fedorahosted.org/freeipa/ticket/5076 Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com> Reviewed-By: Martin Basti <mbasti@redhat.com> Reviewed-By: Pavel Vomacka <pvomacka@redhat.com>
Diffstat (limited to 'ipalib/errors.py')
-rw-r--r--ipalib/errors.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/ipalib/errors.py b/ipalib/errors.py
index 67ed2818f..52fa25f02 100644
--- a/ipalib/errors.py
+++ b/ipalib/errors.py
@@ -607,6 +607,12 @@ class KrbPrincipalExpired(SessionError):
"""
errno = 1203
+class UserLocked(SessionError):
+ """
+ **1204** Raised when a user account is locked.
+ """
+ errno = 1204
+
##############################################################################
# 2000 - 2999: Authorization errors
class AuthorizationError(PublicError):