Geoffrey Young
Tue, 16 Sep 2003 05:22:46 -0700
Hi, I'm having a bit of trouble authenticating users. The script I have works, but only a couple of times before it just sends out 401 without prompting the user for their details. We have mod_perl 1.99_05 installed, we don't want to upgrade as we would have more applications to upgrade than time.
Any help/questions would be appreciated. The problem script is below:
use strict; use Apache::Const qw(OK AUTH_REQUIRED); use lib qw(/var/www/html/opbms/libs); use CheckLogin; use CreateFrames;
my $r = shift;
print "Content-Type:text/html\n\n";
my ($status, $password) = $r->get_basic_auth_pw;
if ($status != OK) { $r->status($status); exit($status); }