Mar 16, 1999, 6:52 PM
Veteran / Moderator (8669 posts)
Mar 16, 1999, 6:52 PM
Post #2 of 2
Views: 1694
I use Xitami on my home computer, too, so this is one of the few server issues I can write about a little bit.
In auth.pl, find the line that says
my ($server_auth) = $ENV{'REMOTE_USER'} | | $ENV{'AUTH_USER'};
Put a # before it, so it looks like
# my ($server_auth) = $ENV{'REMOTE_USER'} | | $ENV{'AUTH_USER'};
Further down in the same file, under
sub auth_check_permissions, you'll see the following lines
if ($ENV{'REMOTE_USER'} | | $ENV{'AUTH_USER'}) {
$username = $ENV{'REMOTE_USER'} | | $ENV{'AUTH_USER'};
}
else {
($userid =~ /^([A-Za-z0-9]+)\.\d+$/) ? ($username = $1) : return (0,0,0,0,0);
}
Put # characters in front of the lines so it looks like
# if ($ENV{'REMOTE_USER'} | | $ENV{'AUTH_USER'}) {
# $username = $ENV{'REMOTE_USER'} | | $ENV{'AUTH_USER'};
# }
# else {
($userid =~ /^([A-Za-z0-9]+)\.\d+$/) ? ($username = $1) : return (0,0,0,0,0);
# }
In other words, leave only the line that starts with
($userid =~
That should work for you.
------------------
JPD