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
|
0000-12-31 18:09:24 -05:50
|
|
|
ErrorDocument 401 /errors/unauthorized.html
|
2007-09-10 15:33:01 -05:00
|
|
|
RewriteEngine on
|
|
|
|
Order deny,allow
|
|
|
|
Allow from all
|
|
|
|
|
|
|
|
# We create a subrequest to find REMOTE_USER. Don't do this for every
|
|
|
|
# subrequest too (slow and huge logs result)
|
|
|
|
RewriteCond %{IS_SUBREQ}% false
|
|
|
|
RewriteRule .* - [E=RU:%{LA-U:REMOTE_USER}]
|
|
|
|
RequestHeader set X-Forwarded-User %{RU}e
|
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
|
2007-09-25 07:37:45 -05:00
|
|
|
ProxyPass /cgi-bin !
|
|
|
|
ProxyPass /errors !
|
2007-10-29 11:00:48 -05:00
|
|
|
ProxyPass /config !
|
2007-09-10 15:33:01 -05:00
|
|
|
ProxyPass /ipa !
|
2007-09-25 07:37:45 -05:00
|
|
|
#ProxyPass /ipatest !
|
2007-09-10 15:33:01 -05:00
|
|
|
ProxyPass / http://localhost:8080/
|
2007-09-25 07:37:45 -05:00
|
|
|
ProxyPassReverse /cgi-bin !
|
2007-09-10 15:33:01 -05:00
|
|
|
ProxyPassReverse /errors !
|
2007-10-29 11:00:48 -05:00
|
|
|
ProxyPassReverse /config !
|
2007-09-10 15:33:01 -05:00
|
|
|
ProxyPassReverse /ipa !
|
2007-09-25 07:37:45 -05:00
|
|
|
#ProxyPassReverse /ipatest !
|
2007-09-10 15:33:01 -05:00
|
|
|
ProxyPassReverse / http://localhost:8080/
|
|
|
|
|
|
|
|
# Configure the XML-RPC service
|
|
|
|
|
|
|
|
Alias /ipa "/usr/share/ipa/ipaserver/XMLRPC"
|
2007-09-25 07:37:45 -05:00
|
|
|
Alias /errors "/usr/share/ipa/html"
|
2007-10-29 11:00:48 -05:00
|
|
|
Alias /config "/usr/share/ipa/html"
|
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
|
|
|
|
ErrorDocument 401 /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
|
|
|
|
ErrorDocument 401 /errors/unauthorized.html
|
|
|
|
</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
|
|
|
|
# ErrorDocument 401 /errors/unauthorized.html
|
|
|
|
#
|
|
|
|
# SetHandler mod_python
|
|
|
|
# PythonHandler test_mod_python
|
|
|
|
#
|
|
|
|
# PythonDebug Off
|
|
|
|
#
|
|
|
|
#</Directory>
|