Gossamer Forum
Home : Products : DBMan : Installation :

DBMan with Xitami web server (win 95)

Quote Reply
DBMan with Xitami web server (win 95)
Hi all. I'm using the xitami web server (under Win 95). When i'm in Internet Explorer, the program (demo) don't ask me about login and password, and nothing works. In my website (http://www.sosite.com/cgi-local/db.cgi) all works fine. What can i do?
Sorry, again, my poor english!!!
Quote Reply
Re: DBMan with Xitami web server (win 95) In reply to
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