Added auth_gssapi example for Apache

This commit is contained in:
Alexander Noack 2021-03-31 21:11:44 +02:00
parent 8c12469de2
commit 99a4feb9b1

View File

@ -35,3 +35,15 @@ RewriteRule ^view/javascript/piler.js /js.php [QSA,L]
</FilesMatch> </FilesMatch>
</IfModule> </IfModule>
<IfModule auth_gssapi_module>
<FilesMatch "sso\.php$">
RewriteEngine on
RewriteCond %{HTTP:Authorization} !^$
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]
AuthName "User with domain part (separated by @) in CAPITALS - e.g. 'user@DOMAIN'"
AuthType GSSAPI
GssapiBasicAuth On
GssapiCredStore keytab:/etc/krb5/http.keytab
Require valid-user
</FilesMatch>
</IfModule>