Subject: | Authentication problems |
When accessing the /Jobs directory the login screen returns even though
the cookie is successfully established the first time around and no
further progress can be made.
Mason is used, but I don't think that's having any effect on this.
It appears to go into authenticate() and fails to either pick up
previous user or the existing cookie.
Environment:OpenSUSE 10.3 64 bit
Apache/2.2.4 (Linux/SUSE) mod_ssl/2.2.4 OpenSSL/0.9.8e mod_perl/2.0.3
Perl/v5.8.8 configured (Linux 2.6.22.18-0.2-default #1 SMP 2008-06-09
13:53:20 +0200 x86_64 x86_64 x86_64 GNU/Linux)
Subject: | error_log |
Message body not shown because it is not plain text.
Subject: | AuthCookieHandler.pm |
package Sample::AuthCookieHandler;
use strict;
use base qw(Apache2::AuthCookie);
use Apache2::RequestRec;
use Apache2::RequestUtil;
use Digest::SHA1;
my $secret = "The Quick Brown Fox Jumps Over";
sub authen_cred {
my($self,$r,$username,$password) = @_;
my $session_key = $username.'::'.Digest::SHA1::sha1_hex($username,$secret);
$r->log_error("cred: $username,$password -> $session_key");
# lots of stuff here
return $session_key;
}
sub authen_ses_key {
my ($self,$r,$session_key)=@_;
my ($username,$mac) = split(/::/,$session_key);
$r->log_error("ses: $username -> $session_key");
# check mac
return $username;
}
1;
Subject: | credential1.mas |
Message body not shown because it is not plain text.
Subject: | access_log |
Message body not shown because it is not plain text.
Subject: | http.conf |
Message body not shown because it is not plain text.