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

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

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

 



whiteadi
New User

Sep 17, 2010, 12:16 AM

Post #1 of 2 (16185 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


whiteadi
New User

Sep 17, 2010, 5:15 AM

Post #2 of 2 (16181 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