Gossamer Forum
Home : Products : DBMan : Installation :

Help needed - can't get to logon screen

Quote Reply
Help needed - can't get to logon screen
Hi! I recently posted in the Perl and CGI forum about running cgi scripts on Windows 98. I got the solution to that. However, I now face a new problem - I can't get to the logon screen even though I set the permission in the default.cfg to need authorisation.

My perl directory is at: C:\Perl\bin
The web server program I'm running is Xitami and is installed in c:\Xitami and all my scripts are stored in c:\Xitami\cgi-bin

I'm running the webserver program as a stand-alone server. The web address is http://127.0.0.1/cgi-bin

I have uploaded the db.cgi and default.cfg at this address as db.txt and default.txt : http://julianng.hypermart.net/db.txt or http://julianng.hypermart.net/default.txt

Julian
Quote Reply
Re: Help needed - can't get to logon screen In reply to
This is a problem that comes with using Xitami.

In the auth.pl file, sub auth_check_password, delete the line

my ($server_auth) = $ENV{'REMOTE_USER'} || $ENV{'AUTH_USER'};

In the same file, sub auth_check_permissions, change

Code:

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);
}
to

Code:

($userid =~ /^([A-Za-z0-9]+)\.\d+$/) ? ($username = $1) : return (0,0,0,0,0);

JPD
Quote Reply
Re: Help needed - can't get to logon screen In reply to
Thanks for your help. Finally it works. I almost drove myself crazy figuring out what went wrong. :)

Julian