Re: [mp2] Can't change AuthName

[prev] [thread] [next] [Date index for 2004/12/03]

From: Geoffrey Young
Subject: Re: [mp2] Can't change AuthName
Date: 05:04 on 03 Dec 2004

Maxim Nechaev wrote:
> Hi!
> 
> I want set AuthName from hadler(), instead from httpd.conf.
> I put in Authen handler:
> 
> ...
> sub handler
> {
>  my $r = shift;
> 
>  $r->auth_name('Decline authorization');
>  #^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>  
>  my ($status, $password) = $r->get_basic_auth_pw();
>  return $status if($status != Apache::OK);
> ...
> 
> But it not work. In error_log appear a message:
> Can't change AuthName to 'Decline authorization'
> 
> What i do wrong?

this kind of activity looks to be governed by the same override rules as
.htaccess files.  so, try setting

  AllowOverride AuthConfig

in the <Location> or <Directory> that is the focus of the request and see if
that helps.

--Geoff

        -- 
        Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html

[mp2] Can't change AuthName
Maxim Nechaev 04:45 on 03 Dec 2004

Re: [mp2] Can't change AuthName
Geoffrey Young 05:04 on 03 Dec 2004

Re[2]: [mp2] Can't change AuthName
Maxim Nechaev 05:21 on 03 Dec 2004

Re: [mp2] Can't change AuthName
Maxim Nechaev 04:41 on 04 Dec 2004

Re: [mp2] Can't change AuthName
Geoffrey Young 21:04 on 04 Dec 2004

Re[2]: [mp2] Can't change AuthName
Maxim Nechaev 03:18 on 06 Dec 2004

Generated at 11:26 on 21 Dec 2004 by mariachi v0.52