summaryrefslogtreecommitdiffstats
path: root/ipsilon/login/authkrb.py
diff options
context:
space:
mode:
authorSimo Sorce <simo@redhat.com>2014-05-07 09:51:25 -0400
committerSimo Sorce <simo@redhat.com>2014-05-07 10:00:35 -0400
commit380b732e853b71d3a682a6189f8833c59b5e78d3 (patch)
tree536a0838947be846a62c79abcd6f9d6e99a30116 /ipsilon/login/authkrb.py
parent0c7ff90e4380c2c690818b5a8079fdcfb61af389 (diff)
downloadipsilon-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-xipsilon/login/authkrb.py2
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>
"""