From 380b732e853b71d3a682a6189f8833c59b5e78d3 Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Wed, 7 May 2014 09:51:25 -0400 Subject: [PATCH] Add 500 Error handler for krb module If mod_auth_kerb encounters an internal error, catch it so we can fall back to the next authentication module, if any, or return a proper failure message. Signed-off-by: Simo Sorce --- ipsilon/login/authkrb.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ipsilon/login/authkrb.py b/ipsilon/login/authkrb.py index c67b93b..7132913 100755 --- a/ipsilon/login/authkrb.py +++ b/ipsilon/login/authkrb.py @@ -82,6 +82,7 @@ plugin for actual authentication. """ self.page = Krb(site, self) self.page.__dict__['negotiate'] = KrbAuth(site, self) self.page.__dict__['unauthorized'] = KrbError(site, self) + self.page.__dict__['failed'] = KrbError(site, self) return self.page @@ -101,6 +102,7 @@ CONF_TEMPLATE = """ Require valid-user ErrorDocument 401 /${instance}/login/krb/unauthorized + ErrorDocument 500 /${instance}/login/krb/failed """ -- 2.20.1