.htaccess file's directives does not work with Keberos Authentication.

Solution Verified - Updated -

Issue

  • .htaccess file'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 section.

Environment

  • Red Hat Enterprise Linux (All Versions)
  • Httpd
  • Kerberos

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.