> Hi everyone,
>
> I'm hoping somebody out there can help me out with this. I've
> recently installed Apache 2.2.2 and mod_perl 2.0.2. Everything built
> & compiled cleanly; My boss asked me to try and get NTLM running on
> the server (intranet only) so we can avoid having our users have to
> type in usernames repeatedly. After doing a bit of research, I
> decided to take a shot at the Apache2::AuthenNTLM module, and got that
> installed successfully, as well. I'm running with httpd listening on
> a non-standard port (port 8000) while I'm doing testing, if that makes
> any difference?
>
> Everything *seems* to have worked properly, but I'm seeing an
> error in my Apache error_log which is puzzling me:
> [Thu Jun 08 19:45:50 2006] [error] Bad/Missing
> NTLM/Basic Authorization Header for /cgi-bin/whoami
>
> /cgi-bin/ is ScriptAliased in httpd.conf; 'whoami' is a simple
> that simply prints a response:
> #!/usr/local/perl-5.8.8/bin/perl
> use strict;
> use warnings;
> print "Content-type: text/plain;
> charset=iso-8859-1\n\n";
> print "Welcome, $ENV{REMOTE_USER}!!\n";
>
> But the OUTPUT in my browser reads:
> Welcome, kbpease!!
>
> (Where my login name for my workstation is kbpease)
>
> So it seems as if the NTLM lookup is working, but it's reporting
> these errors. Here's the AuthenNTLM config from my httpd.conf:
>
> <Location />
> PerlAuthenHandler Apache2::AuthenNTLM
> AuthType ntlm,basic
> AuthName MyDomain
> require valid-user
> PerlAddVar ntdomain "MyDomain MyDomain-PDC"
> PerlSetVar defaultdomain MyDomain
> PerlSetVar splitdomainprefix 1
> PerlSetVar ntlmdebug 0
> </Location>
>
> I also see the same error message in my log when I attempt to
> load http://my-server:8000/, or any static page on the server, as
> well.
>
> Can anybody shed any light on the nature of this message? I've
> been trying different things to no avail for the past 2 days, so I'm
> hoping somebody out there will have some idea of what I'm overlooking.
>
> Thanks,
>
> Kevin Pease