login: fix empty password softlock#1698
Merged
brianmcgillion merged 1 commit intotiiuae:mainfrom Jan 26, 2026
Merged
Conversation
c4b44f8 to
69eb252
Compare
Collaborator
|
works with AD by setting to |
Signed-off-by: Kajus Naujokaitis <kajus.naujokaitis@unikie.com>
69eb252 to
b877118
Compare
mbssrc
approved these changes
Jan 22, 2026
Collaborator
|
Tested on Darter Pro and Lenovo X1 , working well with empty password entry . No more authentication stuck at the login screen observed. |
Collaborator
|
Completed the tests with AD login with empty password . All good |
brianmcgillion
approved these changes
Jan 26, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description of Changes
What appears to happen (at least to my understanding) is that
pam_systemd_homesends aPAM_AUTHTOK_ERRto the next pam module in the stack.when
pam_unixis not present, it goes straight topam_deny, and the chain is restarted properlywhen
pam_unixis present, it goes to pam_unix , which has the flagslikeauth nullok try_first_pass, and for some reason it hangsif we add the
use_first_passflag topam_unix, it tries the empty password and fails properlyThe only concern is that if we add this
use_first_passby default, it might break authentication withpam_sss, if as Manuel suggested, it needs a password from a previous pam moduleSo the stack atm is like so, if I understand it correctly
With this patch we force
use_first_passforpam_unix, so it will never prompt for a passwordThanks to Everton and Manuel for their help debugging 🫡 🚀
Type of Change
Related Issues / Tickets
Checklist
make-checksand it passesTesting Instructions
Applicable Targets
aarch64aarch64x86_64x86_64x86_64Installation Method
nixos-rebuild ... switchTest Steps To Verify: