|
From: Jamie C. <jca...@we...> - 2006-02-10 22:58:10
|
Hi Dave,
That looks like a bug in Webmin.
Which module are you doing the password change in though? It seems that the caller of unix_crypt is passing in the wrong parameters.
- Jamie
-----Original Message-----
From: Dave Isaacs <dav...@en...>
Subj: [webmin-l] Change Password error
Date: Sat 11 Feb 2006 5:01 am
Size: 2K
To: "'web...@li...'" <web...@li...>
Message
Previously, whenI was using the Webmin 1.230 (on RedHat EL3)passwd module, there were no problems.
Now, using the Webmin 1.250 version, I get the error "Failed to change password : Failed to encrypt password :".
Looking at web-funcs-lib.pl, at the unix_crypt() subroutine, I can see that if the call to crypt() fails, then Crypt::UnixCrypt is used instead. Indeed, in my case the
$rv = eval "crypt(\$pass, \$salt)";
call is resulting in $rv being undef. The fallback to Crypt::UnixCrypt does not work because I do not have that perl module installed.
Now my question is: why is the call to crypt() failing? It was not failing previously. Doing a little digging, I discovered the when the failure occurs, $pass is equal to the old password and $salt is equal to undef. Without salt, crypt() appears to return nothing. Why is the salt undef?
Thanks
Dave Isaacs
|