diff options
Diffstat (limited to 'swiftkerbauth/kerbauth.py')
-rw-r--r-- | swiftkerbauth/kerbauth.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/swiftkerbauth/kerbauth.py b/swiftkerbauth/kerbauth.py index c8b51fb..fa06bcd 100644 --- a/swiftkerbauth/kerbauth.py +++ b/swiftkerbauth/kerbauth.py @@ -407,6 +407,10 @@ class KerbAuth(object): return HTTPServerError("kinit command not found\n") if ret != 0: self.logger.warning("Failed: kinit %s", user) + if ret == -1: + self.logger.warning("Failed: kinit: Password has probably " + "expired.") + return HTTPServerError("Kinit is taking too long.\n") return HTTPUnauthorized(request=req) self.logger.debug("kinit succeeded") |