Tried using Perl, Kerberos and the old mod_ntlm but without any result.
My enabled modules in apache:
alias
auth_basic
auth_kerb
authn_core
authn_file
authz_core
authz_host
authz_user
autoindex
cgi
deflate
dir
env
filter
mime
mpm_prefork
negotiation
perl
php5
setenvif
status
I've created a httpd.conf file:
Code: Select all
DirectoryIndex index.php index.html index.htm KeepAlive on HostnameLookups on <Location /test>
PerlAuthenHandler "Apache2::AuthenNTLM"
AuthType ntlm,basic
AuthName "NTLM Authentication"
require valid-user
PerlAddVar ntdomain "MYDOMAIN 10.52.43.220"
PerlSetVar defaultdomain "MYDOMAIN"
PerlSetVar splitdomainprefix 1
PerlSetVar ntlmdebug 0
PerlSetVar ntlmauthorative off
PerlSetVar ntlmsemkey 0
PerlSetVar ntlmsemtimeout 1
</Location>
Because it doesn't work I tried putting an .htaccess in /var/www/test
Code: Select all
<Location /test>
AuthType NTLM
NTLMAuth on
NTLMAuthoritative on
NTLMDomain MYDOMAIN
NTLMServer 10.52.43.220
require valid-user
</Location>
/var/log/apache2/error.log displays this:
Code: Select all
[Thu Oct 08 11:34:23.786879 2015] [mpm_prefork:notice] [pid 2287]
AH00163: Apache/2.4.10 (Debian) mod_auth_kerb/5.4 mod_perl/2.0.9dev
Perl/v5.20.2 configured -- resuming normal operations [Thu Oct 08 11:34:23.786922 2015] [core:notice] [pid 2287] AH00094:
Command line: '/usr/sbin/apache2'
[Thu Oct 08 11:35:39.656529 2015] [:error] [pid 2293] [client 10.52.43.14:49784] PHP Notice: Undefined index: REMOTE_USER in /var/www/html/test/ntlm.php on line 2, referer: http://10.52.43.71/test/
I have a previous version of Debian running on a standalone server with the NTLM working but I want to virtualize the OS.