2008-05-07 08:33:00 -05:00
|
|
|
#
|
|
|
|
# VERSION 1 - DO NOT REMOVE THIS LINE
|
|
|
|
#
|
0000-12-31 18:09:24 -05:50
|
|
|
# LoadModule auth_kerb_module modules/mod_auth_kerb.so
|
|
|
|
|
2007-09-25 07:37:45 -05:00
|
|
|
ProxyRequests Off
|
0000-12-31 18:09:24 -05:50
|
|
|
|
2008-02-21 15:25:09 -06:00
|
|
|
# ipa-rewrite.conf is loaded separately
|
2007-10-19 09:14:30 -05:00
|
|
|
|
2007-12-12 08:36:32 -06:00
|
|
|
# This is required so the auto-configuration works with Firefox 2+
|
|
|
|
AddType application/java-archive jar
|
|
|
|
|
2007-09-25 07:37:45 -05:00
|
|
|
<Proxy *>
|
2007-08-06 09:05:53 -05:00
|
|
|
AuthType Kerberos
|
|
|
|
AuthName "Kerberos Login"
|
|
|
|
KrbMethodNegotiate on
|
|
|
|
KrbMethodK5Passwd off
|
|
|
|
KrbServiceName HTTP
|
2007-08-06 09:51:23 -05:00
|
|
|
KrbAuthRealms $REALM
|
2007-08-06 09:05:53 -05:00
|
|
|
Krb5KeyTab /etc/httpd/conf/ipa.keytab
|
|
|
|
KrbSaveCredentials on
|
|
|
|
Require valid-user
|
2008-05-07 08:33:00 -05:00
|
|
|
ErrorDocument 401 /ipa/errors/unauthorized.html
|
2007-09-10 15:33:01 -05:00
|
|
|
RewriteEngine on
|
|
|
|
Order deny,allow
|
|
|
|
Allow from all
|
|
|
|
|
2007-09-14 16:19:02 -05:00
|
|
|
RequestHeader set X-Forwarded-Keytab %{KRB5CCNAME}e
|
2007-09-10 15:33:01 -05:00
|
|
|
|
|
|
|
# RequestHeader unset Authorization
|
|
|
|
</Proxy>
|
|
|
|
|
|
|
|
# The URI's with a trailing ! are those that aren't handled by the proxy
|
2008-05-07 08:33:00 -05:00
|
|
|
ProxyPass /ipa/ui http://localhost:8080/ipa/ui
|
|
|
|
ProxyPassReverse /ipa/ui http://localhost:8080/ipa/ui
|
2007-09-10 15:33:01 -05:00
|
|
|
|
|
|
|
# Configure the XML-RPC service
|
2008-05-07 08:33:00 -05:00
|
|
|
Alias /ipa/xml "/usr/share/ipa/ipaserver/XMLRPC"
|
2007-09-10 15:33:01 -05:00
|
|
|
|
2008-03-24 14:54:55 -05:00
|
|
|
# This is where we redirect on failed auth
|
2008-05-07 08:33:00 -05:00
|
|
|
Alias /ipa/errors "/usr/share/ipa/html"
|
2008-03-24 14:54:55 -05:00
|
|
|
|
|
|
|
# For the MIT Windows config files
|
2008-05-07 08:33:00 -05:00
|
|
|
Alias /ipa/config "/usr/share/ipa/html"
|
2008-03-24 14:54:55 -05:00
|
|
|
|
2007-09-10 15:33:01 -05:00
|
|
|
<Directory "/usr/share/ipa/ipaserver">
|
2007-09-25 07:37:45 -05:00
|
|
|
AuthType Kerberos
|
|
|
|
AuthName "Kerberos Login"
|
|
|
|
KrbMethodNegotiate on
|
|
|
|
KrbMethodK5Passwd off
|
|
|
|
KrbServiceName HTTP
|
|
|
|
KrbAuthRealms $REALM
|
|
|
|
Krb5KeyTab /etc/httpd/conf/ipa.keytab
|
|
|
|
KrbSaveCredentials on
|
|
|
|
Require valid-user
|
2008-05-07 08:33:00 -05:00
|
|
|
ErrorDocument 401 /ipa/errors/unauthorized.html
|
0000-12-31 18:09:24 -05:50
|
|
|
|
|
|
|
SetHandler mod_python
|
|
|
|
PythonHandler ipaxmlrpc
|
|
|
|
|
|
|
|
PythonDebug Off
|
|
|
|
|
2007-09-25 07:37:45 -05:00
|
|
|
PythonOption IPADebug Off
|
2007-09-21 13:39:52 -05:00
|
|
|
|
0000-12-31 18:09:24 -05:50
|
|
|
# this is pointless to use since it would just reload ipaxmlrpc.py
|
|
|
|
PythonAutoReload Off
|
|
|
|
</Directory>
|
2007-09-10 15:33:01 -05:00
|
|
|
|
2007-09-25 07:37:45 -05:00
|
|
|
# Do no authentication on the directory that contains error messages
|
2007-09-24 14:20:34 -05:00
|
|
|
<Directory "/usr/share/ipa/html">
|
|
|
|
AllowOverride None
|
|
|
|
Satisfy Any
|
|
|
|
Allow from all
|
|
|
|
</Directory>
|
2007-09-25 07:37:45 -05:00
|
|
|
|
|
|
|
# Protect our CGIs
|
|
|
|
<Directory /var/www/cgi-bin>
|
|
|
|
AuthType Kerberos
|
|
|
|
AuthName "Kerberos Login"
|
|
|
|
KrbMethodNegotiate on
|
|
|
|
KrbMethodK5Passwd off
|
|
|
|
KrbServiceName HTTP
|
|
|
|
KrbAuthRealms $REALM
|
|
|
|
Krb5KeyTab /etc/httpd/conf/ipa.keytab
|
|
|
|
KrbSaveCredentials on
|
|
|
|
Require valid-user
|
2008-05-07 08:33:00 -05:00
|
|
|
ErrorDocument 401 /ipa/errors/unauthorized.html
|
2007-09-25 07:37:45 -05:00
|
|
|
</Directory>
|
|
|
|
|
2007-09-25 08:50:30 -05:00
|
|
|
#Alias /ipatest "/usr/share/ipa/ipatest"
|
2007-09-25 07:37:45 -05:00
|
|
|
|
2007-09-25 08:50:30 -05:00
|
|
|
#<Directory "/usr/share/ipa/ipatest">
|
2007-09-25 07:37:45 -05:00
|
|
|
# AuthType Kerberos
|
|
|
|
# AuthName "Kerberos Login"
|
|
|
|
# KrbMethodNegotiate on
|
|
|
|
# KrbMethodK5Passwd off
|
|
|
|
# KrbServiceName HTTP
|
|
|
|
# KrbAuthRealms $REALM
|
|
|
|
# Krb5KeyTab /etc/httpd/conf/ipa.keytab
|
|
|
|
# KrbSaveCredentials on
|
|
|
|
# Require valid-user
|
2008-05-07 08:33:00 -05:00
|
|
|
# ErrorDocument 401 /ipa/errors/unauthorized.html
|
2007-09-25 07:37:45 -05:00
|
|
|
#
|
|
|
|
# SetHandler mod_python
|
|
|
|
# PythonHandler test_mod_python
|
|
|
|
#
|
|
|
|
# PythonDebug Off
|
|
|
|
#
|
|
|
|
#</Directory>
|