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

[cobalt-users] password validation



I'm porting over a PERL script from a BSDI system in which a username and password are validated against /etc/passwd.  However, this script does not want to run on our new RAQ3 .. could someone give me some pointers as to what could be wrong.  I'm guessing it is something to do with the salt value.  The snip of code is:
$salt = substr(@pwdata[1],0,2);
$form_crypt = crypt($input{'password'}, $salt);
 
Thanks,
Darren.