Web Server Directory Authentication
Dear All:
I have configured my RHEL 5.3 Linux server integrated with MS AD. Every work fine and the user will managed to authenticate with their own window ID.
But how can i set the apache to be authenticate the user if available, if fail to authenticate then redirect to normal site without prompt user to enter ID and password.
Code:
<VirtualHost 10.8.2.239>
<Directory "/var/www/html/intranet">
AuthType Kerberos
KrbAuthRealms domain.com
KrbServiceName HTTP/abc.domain.com
Krb5Keytab /etc/httpd/conf/apache.keytab
KrbMethodNegotiate on
KrbMethodK5Passwd On
KrbAuthoritative Off
Order Allow,Deny
Require valid-user
Allow from all
# Allow from localhost
# Require valid-user
Satisfy any
</Directory>
DocumentRoot /var/www/html/intranet
ServerAdmin webmaster@abc.domain.com
ServerName abc.domain.com
DirectoryIndex index.html index.php index.htm index.shtml
TransferLog /var/log/httpd/intranet_access_log
ErrorLog /var/log/httpd/intranet_error_log
</VirtualHost>
The web server will only authenticate if i remove "Satisfy any" but for non-domain user will not able to access. Even if put "Require valid-user" then "Satisfy any", the server will not authenticate too.
Thank you.
chusoon