Skip to content

Instantly share code, notes, and snippets.

@rogeriopradoj

rogeriopradoj/.htaccess

Last active Aug 29, 2015
Embed
What would you like to do?
test module mod_auth_sspi or mod_authnz_sspi.so in Apache 2.2 or 2.4 on Windows host
<IfModule mod_authnz_sspi.c>
AuthType SSPI
SSPIAuth On
SSPIAuthoritative On
SSPIOfferBasic Off
Require valid-user
</ifModule>
<IfModule mod_auth_sspi.c>
AuthType SSPI
SSPIAuth On
SSPIOfferBasic Off
SSPIAuthoritative On
require valid-user
</ifModule>
# Módulo NTLM
# informações da página do Moodle - http://docs.moodle.org/en/NTLM_authentication
# e do mod-auth-sspi - http://sourceforge.net/projects/mod-auth-sspi/files/
LoadModule sspi_auth_module modules/mod_auth_sspi.so
# Módulo NTLM para Apache 2.4
# informações da página do mod-auth-sspi - http://sourceforge.net/projects/mod-auth-sspi/forums/forum/550583/topic/4868892
# e do apachehaus - https://www.apachehaus.net/modules/mod_authnz_sspi/
LoadModule authnz_sspi_module modules/mod_authnz_sspi.so
<?php
error_reporting(-1);
ini_set('display_errors', '1');
ini_set('default_charset', 'utf-8');
date_default_timezone_set('America/Sao_Paulo');
var_dump($_SERVER);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.