Password unset after reboot
|Reported by:||jalopeura||Owned by:||nobody|
|Has a Patch:||no||Platform:||All|
If you use passwd to change your password, when you reboot, your password is unset. (Not sure whether it reverts to the default password or you just have no password at all.)
The problem seems to be related to #12365; when that change was made, the generated password hash increased in size from 128 to 135, but the constant MAX_SHADOW_PWD_PASSWORD_LEN in headers/private/libroot/user_group.h did not change.
I think the solution is as simple as just changing that constant, but the passwd program uses the same constant to check length of the plaintext password entered by the user. So it might be better to have two constants; one for plaintext passwords that can remain at 128, and one for the shadow password strings, that should be set to 135.