GY $ t/TEST t/api/access.t -v
This gives:
.
# testing : auth_name
# expected: modperl
# received: modperl
ok 6
# testing : auth_name
# expected: modperl_test
# received: modperl_test
ok 7
.
In my code i can change auth_name() from Response handler easy, but
can't do this from Authen
Maxim Nechaev wrote:
Maybe, i use wrong handler to change AuthName?
you should be able to change it from anywhere I'd think, especially prior to
authentication and via the insertion mechanism.
make sure that you can run the test that exercises $r-auth_name from the
mod_perl test suite
$
Maybe, i use wrong handler to change AuthName?
Maxim Nechaev
--
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
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 !=
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();
GY this kind of activity looks to be governed by the same override rules as
GY .htaccess files. so, try setting
GY AllowOverride AuthConfig
It's not help. Same message in error_log.
Any other variants? Thanks.
Maxim Nechaev
--
Report problems: http://perl.apache.org/bugs/
Mail list