Re: Unable to get PerlAuthenHandler to work in mp2
by John Drago other posts by this author
Aug 20 2008 3:51PM messages near this date
Re: Unable to get PerlAuthenHandler to work in mp2
|
Re: Unable to get PerlAuthenHandler to work in mp2
--- On Wed, 8/20/08, Brett Randall <brett@[...].com> wrote:
> From: Brett Randall <brett@[...].com>
> Subject: Re: Unable to get PerlAuthenHandler to work in mp2
> To: "Perrin Harkins" <perrin@[...].com>
> Cc: modperl@[...].org
> Date: Wednesday, August 20, 2008, 3:42 PM
> >>>>> "Perrin" == Perrin Harkins
> <perrin@[...].com> writes:
>
> > On Wed, Aug 20, 2008 at 3:03 AM, Brett Randall
> <brett@[...].com> wrote:
> >> I'm trying to get PerlAuthenHandler to work
> but when I go to a URL
> >> that I've set it up on, it asks for a username
> and password and then
> >> lets me in no matter what I type.
>
> > Have you debugged this code to figure out which line
> it returns on?
>
> I was wondering about debugging... I'll probably do the
> good old open a
> file, write to it after each line, and see where it stops
> writing - but
> for future reference, is there a better way to debug
> PerlAuthenHandlers?
Try adding "warn $msg" statements (instead of printing to a file).
Perl's "warn" function prints to STDERR, which is usually appended to the web server's error
s log. To read the errors as they are printed, do the following (provided you have shell ac
cess on your server, and it's running on some kind of Unix/Linux system):
tail -f /var/log/httpd/error_log
(where /var/log/httpd/error_log is the path to your error log).
Regards,
John Drago
Thread:
Brett Randall
Perrin Harkins
John Drago
Clinton Gormley
Philip M. Gollucci
Perrin Harkins
|