.htaccess file's directives does not work with Keberos Authentication.
Issue
.htaccessfile's directives does not work with Keberos Authentication.
a. These are the contents of .htaccess file.
/path/to/docroot/.htaccess
Order allow,deny
Deny from all
Satisfy All
b. An excerpt from /etc/httpd/conf/httpd.conf file.
<VirtualHost *:80>
ServerAdmin root@server.example.org
DocumentRoot /path/to/docroot/
ServerName server.example.org
<Directory /path/to/docroot>
AllowOverride All
</Directory>
<Location />
AuthType Kerberos
AuthName "Kerberos Login"
Krb5KeyTab /etc/krb5.keytab
KrbAuthRealms REALM.EXAMPLE.ORG
KrbServiceName HTTP/server.domain.com@REALM.EXAMPLE.ORG
KrbMethodNegotiate On
KrbMethodK5Passwd On
KrbVerifyKDC off
KrbServiceName HTTP
require valid-user
Order allow,deny
Allow from all
Deny from foo.example.org
</Location>
</VirtualHost>
As per the above configuration, it doesn't honour .htaccess file when authentication and access directives were mentioned in the
Environment
- Red Hat Enterprise Linux (All Versions)
- Httpd
- Kerberos
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.