From: Simo Sorce Date: Wed, 7 May 2014 13:51:25 +0000 (-0400) Subject: Add 500 Error handler for krb module X-Git-Tag: v0.2.3~4 X-Git-Url: http://git.cascardo.info/?p=cascardo%2Fipsilon.git;a=commitdiff_plain;h=380b732e853b71d3a682a6189f8833c59b5e78d3 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 --- 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 """