diff options
author | Simo Sorce <simo@redhat.com> | 2014-05-07 09:51:25 -0400 |
---|---|---|
committer | Simo Sorce <simo@redhat.com> | 2014-05-07 10:00:35 -0400 |
commit | 380b732e853b71d3a682a6189f8833c59b5e78d3 (patch) | |
tree | 536a0838947be846a62c79abcd6f9d6e99a30116 /ipsilon/login/authkrb.py | |
parent | 0c7ff90e4380c2c690818b5a8079fdcfb61af389 (diff) | |
download | ipsilon-380b732e853b71d3a682a6189f8833c59b5e78d3.tar.gz ipsilon-380b732e853b71d3a682a6189f8833c59b5e78d3.tar.xz ipsilon-380b732e853b71d3a682a6189f8833c59b5e78d3.zip |
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 <simo@redhat.com>
Diffstat (limited to 'ipsilon/login/authkrb.py')
-rwxr-xr-x | ipsilon/login/authkrb.py | 2 |
1 files changed, 2 insertions, 0 deletions
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 </Location> """ |