Page MenuHomeFreeBSD

Do not prompt for password if it's set to empty password
ClosedPublic

Authored by trasz on Dec 11 2020, 11:35 AM.
Tags
None
Referenced Files
F154655257: D27569.id86784.diff
Wed, Apr 29, 3:51 AM
Unknown Object (File)
Tue, Apr 28, 1:06 PM
Unknown Object (File)
Sat, Apr 25, 3:22 AM
Unknown Object (File)
Wed, Apr 22, 7:32 PM
Unknown Object (File)
Wed, Apr 15, 8:03 PM
Unknown Object (File)
Mon, Apr 13, 11:30 AM
Unknown Object (File)
Wed, Apr 8, 11:03 PM
Unknown Object (File)
Sun, Apr 5, 4:51 PM

Details

Summary

Make pam_unix(8) not prompt for password, if it's set to an empty
one - just like we don't prompt for password if the hash itself
is empty.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 35342
Build 32270: arc lint + arc unit

Event Timeline

Add a separate option, "emptyok", so we can commit it without changing
the default behaviour.

lib/libpam/modules/pam_unix/pam_unix.c
97

Seems this should really be called emptypasswd.

127

Should we check for the option and flag before calling crypt()?

Seems ok to me. It would be best if someone more familiar with PAM would look at this.

This revision is now accepted and ready to land.Mar 31 2021, 4:15 PM