[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Weird password problem



-----BEGIN PGP SIGNED MESSAGE-----


I ran into this exact same problem with mod_perl authentication.  For some
reason I'd always get this random extra character at the end.

I found the solution (excuse my SQL/perl notation)

$passwd = "SELECT PASSWORD($passwd_sent)";
chop($passwd);

The chop gets rid of the extra character at the end so that you can
properly verify.

- -- 
Aaron Turner           | Either which way, one half dozen or another. 
aturner@pobox.com      | Check out the Red Hat Linux User's FAQ Online!
www.pobox.com/~aturner | http://www.pobox.com/~aturner/RedHat-FAQ/
All emails from this account are PGP signed.  Lack of a signature is "bad".
PGP Key fingerprint = FB E1 CE ED 57 E4 AB 80  59 6E 60 BF 45 1B 20 E8


On Fri, 9 Apr 1999, Micah Yoder wrote:

> OK,
> 
> >From PHPMySQLAdmin, I did a
> 
> select Passwd, password('[micah's password here]') from Users where
> Handle='micah'
> 
> The first column returned was 378b243e220ca49
> The second was                378b243e220ca493
> 
> This is probably why my script wasn't working.  Why is it adding the
> extra 3 when I use the password('') function???  My connect.php3 script
> compares the equality of these, so that's why it's been failing.
> 
> Any ideas???
> 


-----BEGIN PGP SIGNATURE-----
Version: 2.6.2

iQCVAwUBNw6wdTM3jpXy1kJtAQFrxwP/cT5tXyV5cMTb06SynvYxY4ZGCev1vY2h
DdflgWjpymm5oAtjN5GB8Qba2Fd9QsFMn8Hv52m2yzxrfH8OLSvwjXK5NQNrfx7Q
Ym217VEkfAI3DP9U3T+GUSSvrddf5s2PH9xx8dcrnaR0NWZPaW3KLyaUTqp2OVIi
UcISFdBS7yk=
=A4DA
-----END PGP SIGNATURE-----