|
From: Dave I. <dav...@en...> - 2006-02-10 18:00:13
|
Previously, when I 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 |