Skip to content

Instantly share code, notes, and snippets.

@scottslowe
Created December 19, 2014 19:19
Show Gist options
  • Save scottslowe/276f8a87211bc422754f to your computer and use it in GitHub Desktop.
Save scottslowe/276f8a87211bc422754f to your computer and use it in GitHub Desktop.
This snippet of Apache configuration will enable Kerberos authentication, useful for integration with services like Active Directory.
LoadModule auth_kerb_module modules/mod_auth_kerb.so
<Location /secured>
AuthType Kerberos
AuthName "Kerberos Login"
KrbMethodNegotiate On
KrbMethodK5Passwd On
KrbAuthRealms EXAMPLE.COM
Krb5KeyTab /etc/httpd/conf/httpd.keytab
require valid-user
</Location>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment