From 2a20c746336f85c4a9bd095db242de11f0015903 Mon Sep 17 00:00:00 2001 From: Abhijeet Kasurde Date: Tue, 22 Mar 2016 15:41:36 +0530 Subject: Added fix for notifying user about Kerberos principal expiration in WebUI - User is now notified about "Kerberos Principal expiration" message instead of "Wrong username or password" message. - User is also notified about "Invalid password" message instead of generic error message. https://fedorahosted.org/freeipa/ticket/5077 Signed-off-by: Abhijeet Kasurde Reviewed-By: Petr Vobornik --- ipalib/errors.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'ipalib/errors.py') diff --git a/ipalib/errors.py b/ipalib/errors.py index 2507e13dc..67ed2818f 100644 --- a/ipalib/errors.py +++ b/ipalib/errors.py @@ -1,7 +1,7 @@ # Authors: # Jason Gerard DeRose # -# Copyright (C) 2008 Red Hat +# Copyright (C) 2008-2016 Red Hat # see file 'COPYING' for use and warranty inmsgion # # This program is free software; you can redistribute it and/or modify @@ -601,6 +601,12 @@ class PasswordExpired(InvalidSessionPassword): """ errno = 1202 +class KrbPrincipalExpired(SessionError): + """ + **1203** Raised when Kerberos Principal is expired. + """ + errno = 1203 + ############################################################################## # 2000 - 2999: Authorization errors class AuthorizationError(PublicError): -- cgit