CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
Search Posts SEARCH
Who's Online WHO'S
Log in LOG

Home: Perl Programming Help: mod_perl:
PerlAuthenHandler does not show login pop up


New User

Sep 17, 2010, 12:16 AM

Post #1 of 2 (27938 views)
PerlAuthenHandler does not show login pop up Can't Post


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

and in 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


New User

Sep 17, 2010, 5:15 AM

Post #2 of 2 (27934 views)
Re: [whiteadi] PerlAuthenHandler does not show login pop up [In reply to] Can't Post

I did this as test:
I commented out the PerlAuthenHandler MyAuth in httpd.cfg file
#PerlAuthenHandler MyAuth

and the basic authentication was fired but of course then the perl handler is not used.


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives