Gossamer Forum
Home : Products : DBMan : Installation :

Login problems (part2) for Xitami

Quote Reply
Login problems (part2) for Xitami
I was having problems with the login screen for Xitami with DBman, and thank god someone else had that problem, so i had it fixed per your suggestion. Now the problem i'm having is that after that code change to auth.pl, i get the following error:

CGI ERROR
==========================================
Error Message : fatal error: The crypt() function is unimplemented due to excessive paranoia. at c:/xitami/cgi-bin/parts/auth.pl line 35.

Script Location : \XITAMI\cgi-bin\parts\db.cgi
Perl Version : 5.00455
Setup File : default.cfg

And the line this references to is under sub auth_check_password {

and the line is:

if (($in{'userid'} eq $userid) && (crypt($in{'pw'},$pw) eq $pw)) {

Any idea on how to fix this? Any help is appreciated. You can see the script up on www.asog.net/cgi-bin/parts/db.cgi





------------------
Vinnie L.
www.asog.net
Avenger/Sebring Owners Group
Quote Reply
Re: Login problems (part2) for Xitami In reply to
There is some info in the FAQ at http://www.gossamer-threads.com/scripts/resources/Detailed/6.html
regarding this. It will give you some options you might try.


------------------
JPD





Quote Reply
Re: Login problems (part2) for Xitami In reply to
Would you by any chance email me the perl version you are using that works with the database? i'd appreciate it..

send it to

kiku888@hotmail.com

Thanks again

------------------
Vinnie L.
www.asog.net
Avenger/Sebring Owners Group
Quote Reply
Re: Login problems (part2) for Xitami In reply to
Vinnie, I got it right off of ActiveState's site. It would be the same thing as you got from them.


------------------
JPD





Quote Reply
Re: Login problems (part2) for Xitami In reply to
Im still having same problem even after trying latest perl from activestate. Now the question i have is that on the FAQ, it lists something different than what you suggested on here. The FAQ suggests:

Authentication does not work on Xitami Web servers
A. Xitami sets the REMOTE_USER environment variable to a "-" even if remote log on is not being
used. This causes DBMan to think that the user has logged on via server authentication.

To fix, edit auth.pl and change:

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

to:

my ($server_auth) = '';


While you suggest:


You'll need to go into the auth.pl file and make some changes.

In sub auth_check_password, delete

code:


elsif ($server_auth) { # The user has logged in via server authentication.
return ('ok', $server_auth, &auth_check_permissions($server_auth));
}



In 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);



The problem is that xitami sends either a $ENV{'REMOTE_USER'} or a
$ENV{'AUTH_USER'}) automatically, which the script is interpreting as someone logging
in through .htaccess.



I did what you suggested..havent had a chance to do the first one...any suggestions??

Thanks!


------------------
Vinnie L.
www.asog.net
Avenger/Sebring Owners Group
Quote Reply
Re: Login problems (part2) for Xitami In reply to
Well, I tried the thing in the FAQ and found that I still needed to change some other code. (I have Xitami on my computer, too.) I gave you what I did.

As for the other thing, I don't know what to suggest. I didn't run into any problem with encryption using Xitami and ActiveState's Perl distribution.


------------------
JPD