From: Boris Z. <bz...@2b...> - 2004-04-20 15:50:56
|
Hi, that looks like a error in your glibc, perl or mod_perl. I just looked at a freebsd box and get fine results. I noticed, that there is a lot possible with crypt on freebsd, look at=20 man 3 crypt also take a look to the file /etc/auth.conf here is what I saw. #/etc/auth.conf # This file contains information on what types of authentication to use. # It is just the beginnings of a greater scheme. # crypt_default =3D md5 des # auth_list =3D passwd kerberos auth_list =3D passwd Am Dienstag, 20. April 2004 16:52 schrieb Net Drifter: > I have confirmed that crypt is different between Perl > 5.6.1/Red Hat 7.3 and 5.8.2/FreeBSD 4.9. On the first > machine, the result of crypt($pw, $salt) is 13 > characters. On the second machine it is 60 > characters. > > On the first machine, crypt($pw, $salt) always returns > the same 13 characters when $pw and $salt are the > same. > > On the second machine, the results returned are > inconsistent. With the same $pw and $salt, I get > these from pkit_auth_session_key during the same > session when it runs twice: > > $2a$04$ckHfa0S0L./OXVHqV1L0VujdmXqfipazVvUew/Jt29uGnQTWwV9Sy > $2a$04$cea.............Uea.....R.GynHj/llZIZ1szq0oYjqLQDLdu6 > > It is always these two different results (no other > results) and I have confirmed crypt is being run on > the same $pw and $salt. > > And when I run a small perl script from the command > line on the exact same $pw and $salt, I consistently > get this: > > $2a$04$cruDI.................SzCJIRyFISM5TRNUxw8.9jSG3RGGt6G > > Three different answers for the same $pw and $salt. > > David > > > > > > __________________________________ > Do you Yahoo!? > Yahoo! Photos: High-quality 4x6 digital prints for 25=A2 > http://photos.yahoo.com/ph/print_splash > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO of > GenToo technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id=3D1470&alloc_id=3D3638&op=3Dc= lick > _______________________________________________ > Pagekit-users mailing list > Pag...@li... > https://lists.sourceforge.net/lists/listinfo/pagekit-users --=20 Boris |