summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Pazdziora <jpazdziora@redhat.com>2015-10-21 17:06:30 +0200
committerJan Pazdziora <jpazdziora@redhat.com>2015-10-21 17:06:30 +0200
commit59c3aaa95d68771f19e26e1b5f81b13f8f1e41ca (patch)
tree6cbef1536120b61afadeff2b1030b7348eabe34c
parentd5c2d76b7e873ab05f179c32b1140743e3e672e0 (diff)
downloadCGI-sessions-negotiate-mod_auth_gssapi.tar.gz
CGI-sessions-negotiate-mod_auth_gssapi.tar.xz
CGI-sessions-negotiate-mod_auth_gssapi.zip
Add Kerberos authentication via mod_auth_gssapi on /application/login, redirects to /application/login2 to show the form if it fails.negotiate-mod_auth_gssapi
-rw-r--r--auth_kerb.conf11
1 files changed, 11 insertions, 0 deletions
diff --git a/auth_kerb.conf b/auth_kerb.conf
new file mode 100644
index 0000000..e76cb39
--- /dev/null
+++ b/auth_kerb.conf
@@ -0,0 +1,11 @@
+
+LoadModule auth_gssapi_module modules/mod_auth_gssapi.so
+
+<Location /application/login>
+ AuthType GSSAPI
+ AuthName "Kerberos Login"
+ GssapiCredStore keytab:/etc/http.keytab
+ require valid-user
+ ErrorDocument 401 '<html><meta http-equiv="refresh" content="0; URL=/application/login2"><body>Kerberos authentication did not pass.</body></html>'
+</Location>
+