Fast loop fprint auth to simulate simultaneous nonblocking logins with passwd auth#884
Open
vjr wants to merge 3 commits into
Open
Fast loop fprint auth to simulate simultaneous nonblocking logins with passwd auth#884vjr wants to merge 3 commits into
vjr wants to merge 3 commits into
Conversation
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.
Promising workaround to enable (simulate) fprint login to work "simultaneously" with passwd login without one "blocking" the other.
Requires the following line added at the top of
/etc/pam.d/lightdmbut this branch works (passwd-only login) without it. This file is owned by thelightdmpackage not elementary OS so unsure how or where to add this in code/config/packaging or just leave it to users to add it themselves:auth sufficient pam_fprintd.so max-tries=1 timeout=1Note in Ubuntu 24.04 LTS (elementary OS v8) the fprintd timeout is minimum 10 seconds which seems to be fixed/works in Ubuntu 26.04 LTS (for elementary OS v9) which means in os8 when a user enters password has to wait up to 10 seconds before login happens but in os9 likely wait for a maximum of 1 second.
Needs some testing on Ubuntu 26.04 LTS to validate this short timeout does not cause fprint to fail due to insufficient duration for the device to verify a fingerprint!
edit: Tested builtin fprint reader on laptop and a USB reader and fprint verification works with this lowered 1-second timeout.
Fixes #502
Addresses #868
Addresses #738
Addresses #494