On Tue, 2004-02-10 at 08:28, Dooley, Michael wrote:
> CORRECTION:
> 
> ERROR:
> [Tue Feb 10 08:26:06 2004] [error] Bad/Missing NTLM/Basic Authorization
> Header for /
> [Tue Feb 10 08:26:06 2004] [error] No PDC and no fallbackdomain given for
> domain DOMAIN
> 
> <Perl>
> if ( $ENV{REMOTE_ADDR} = '192.168.0.24') {
>         $Location{"/"} = {
>                 PerlAuthenHandler => "Apache::AuthenNTLM",
>                 AuthType => "ntlm",
>                 require => "valid-user",
>                 PerlAddVar  => {ntdomain => "DOMAIN   PDC     BDC",},
>                 PerlSetVar => {ntlmdebug => 1,},
>         };

There are two problems here.  One is that you use '=' for your
comparison rather than '==' so this condition will always be true.  The
second is that REMOTE_ADDR won't be available to you at server startup,
when this perl is run.

Perl sections don't give you a dynamic runtime configuration.  They give
you a dynamic pre-startup config file which is interpreted and becomes a
static config when Apache reads it.

> } else {
>         $Location{"/"} = {
>                 AuthType => "Basic",
>                 require => "valid-user",
>                 AuthName => "testing",
>                 AuthUserFile => "www/secure/passwd",
>                 AuthGroupFile => "www/secure/group",
>         };
> }
> </Perl>
-- 

 |- Garth Webb       -|
 |- [EMAIL PROTECTED] -|

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to