
whiteadi
New User
Sep 17, 2010, 12:16 AM
Post #1 of 2
(26558 views)
|
PerlAuthenHandler does not show login pop up
|
Can't Post
|
|
Hi, I configured it this way: in httpd.cfg: Alias /requestx /home/webapp/myapp/request <Location /requestx > AddHandler cgi-script .cgi AddHandler cgi-script .pl AllowOverride All Options FollowSymLinks ExecCGI DirectoryIndex index.html AuthName "Myapp Authentication (1)" AuthType Basic PerlAuthenHandler MyAuth require valid-user </Location> and in MyAuth.pm file, in package MyAuth I put ... sub handler { my $cgi=new CGI; # Password and login from request my $r =shift; my ($res,$sent_pw) = $r->get_basic_auth_pw; ... but the pop up with basic authentication does not show and I get: Can't locate object method "get_basic_auth_pw" via package "Apache2::RequestRec Regards, Adrian
|