GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Add feature to prioritise pam_u2f over pam_fprintd by asakure · Pull Request #455 · authselect/authselect

Add feature to prioritise pam_u2f over pam_fprintd #455

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Sign up for GitHub

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
asakure wants to merge 1 commit into authselect:master
base: master
Loading
Loading
from asakure:change_pam_u2f_order

Uh oh!

There was an error while loading. Please reload this page.

Open

Add feature to prioritise pam_u2f over pam_fprintd #455

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1 commit
Select commit
216a89e
Add feature to priortise pam_u2f over pam_fprintd
asakure Jun 3, 2026
File filter
Filter by extension

Clear filters
Conversations
Failed to load comments.
Loading

Uh oh!

There was an error while loading. Please reload this page.

Jump to
Jump to file
Failed to load files.
Loading

Uh oh!

There was an error while loading. Please reload this page.

Diff view
Diff view

There are no files selected for viewing

5 changes: 5 additions & 0 deletions 5 profiles/local/README
Show comments
View file
Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,11 @@ with-pam-u2f::
with-pam-u2f-2fa::
Enable 2nd factor authentication via u2f dongle through *pam_u2f*.

with-pam-u2f-priority::
Prioritize U2F authentication before fingerprint when both
with-fingerprint and with-pam-u2f are enabled. This avoids delays
when a U2F hardware token is already connected.

without-pam-u2f-nouserok::
Module argument nouserok is omitted if also with-pam-u2f-2fa is used.
*WARNING*: Omitting nouserok argument means that users without pam-u2f
Expand Down
3 changes: 3 additions & 0 deletions 3 profiles/local/REQUIREMENTS
Show comments
View file
Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,6 @@
{include if "with-pam-u2f-2fa"}
- with-pam-u2f-2fa is selected, make sure that the pam u2f module is installed {include if "with-pam-u2f-2fa"}
- users can then configure keys using the pamu2fcfg tool {include if "with-pam-u2f-2fa"}
{include if "with-pam-u2f-priority"}
- with-pam-u2f-priority is selected, pam_u2f.so module will take preference over {include if "with-pam-u2f-priority"}
pam_fprintd.so module in system-auth file. {include if "with-pam-u2f-priority"}
1 change: 1 addition & 0 deletions 1 profiles/local/system-auth
Show comments
View file
Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ auth required pam_env.so
auth required pam_faildelay.so delay=2000000
auth required pam_faillock.so preauth silent {include if "with-faillock"}
auth sufficient pam_fprintd.so {include if "with-fingerprint"}
auth sufficient pam_u2f.so cue {include if "with-pam-u2f" and "with-pam-u2f-priority"}
auth sufficient pam_u2f.so cue {include if "with-pam-u2f"}
auth required pam_u2f.so cue {if not "without-pam-u2f-nouserok":nouserok} {include if "with-pam-u2f-2fa"}
-auth [success=done authtok_err=bad perm_denied=bad maxtries=bad default=ignore] pam_systemd_home.so {include if "with-systemd-homed"}
Expand Down
5 changes: 5 additions & 0 deletions 5 profiles/nis/README
Show comments
View file
Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,11 @@ with-pam-u2f::
with-pam-u2f-2fa::
Enable 2nd factor authentication via u2f dongle through *pam_u2f*.

with-pam-u2f-priority::
Prioritize U2F authentication before fingerprint when both
with-fingerprint and with-pam-u2f are enabled. This avoids delays
when a U2F hardware token is already connected.

without-pam-u2f-nouserok::
Module argument nouserok is omitted if also with-pam-u2f-2fa is used.
*WARNING*: Omitting nouserok argument means that users without pam-u2f
Expand Down
3 changes: 3 additions & 0 deletions 3 profiles/nis/REQUIREMENTS
Show comments
View file
Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,6 @@ Make sure that NIS service is configured and enabled. See NIS documentation for
{include if "with-systemd-homed"}
- with-systemd-homed is selected, make sure that the system-homed service is enabled {include if "with-systemd-homed"}
- systemctl enable --now systemd-homed.service {include if "with-systemd-homed"}
{include if "with-pam-u2f-priority"}
- with-pam-u2f-priority is selected, pam_u2f.so module will take preference over {include if "with-pam-u2f-priority"}
pam_fprintd.so module in system-auth file. {include if "with-pam-u2f-priority"}
1 change: 1 addition & 0 deletions 1 profiles/nis/system-auth
Show comments
View file
Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ auth required pam_env.so
auth required pam_faildelay.so delay=2000000
auth required pam_faillock.so preauth silent {include if "with-faillock"}
auth sufficient pam_fprintd.so {include if "with-fingerprint"}
auth sufficient pam_u2f.so cue {include if "with-pam-u2f" and "with-pam-u2f-priority"}
auth sufficient pam_u2f.so cue {include if "with-pam-u2f"}
auth required pam_u2f.so cue {if not "without-pam-u2f-nouserok":nouserok} {include if "with-pam-u2f-2fa"}
-auth [success=done authtok_err=bad perm_denied=bad maxtries=bad default=ignore] pam_systemd_home.so {include if "with-systemd-homed"}
Expand Down
5 changes: 5 additions & 0 deletions 5 profiles/sssd/README
Show comments
View file
Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,11 @@ with-pam-u2f::
with-pam-u2f-2fa::
Enable 2nd factor authentication via u2f dongle through *pam_u2f*.

with-pam-u2f-priority::
Prioritize U2F authentication before fingerprint when both
with-fingerprint and with-pam-u2f are enabled. This avoids delays
when a U2F hardware token is already connected.

without-pam-u2f-nouserok::
Module argument nouserok is omitted if also with-pam-u2f-2fa is used.
*WARNING*: Omitting nouserok argument means that users without pam-u2f
Expand Down
3 changes: 3 additions & 0 deletions 3 profiles/sssd/REQUIREMENTS
Show comments
View file
Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,6 @@ Make sure that SSSD service is configured and enabled. See SSSD documentation fo
- with-gpupdate is selected, make sure pam_oddjob_gpupdate module {include if "with-gpupdate"}
and samba-gpupdate are present and oddjobd service is enabled and active {include if "with-gpupdate"}
- systemctl enable --now oddjobd.service {include if "with-gpupdate"}
{include if "with-pam-u2f-priority"}
- with-pam-u2f-priority is selected, pam_u2f.so module will take preference over {include if "with-pam-u2f-priority"}
pam_fprintd.so module in system-auth file. {include if "with-pam-u2f-priority"}
1 change: 1 addition & 0 deletions 1 profiles/sssd/system-auth
Show comments
View file
Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ auth required pam_faildelay.so delay=
auth required pam_faillock.so preauth silent {include if "with-faillock"}
auth [success=1 default=ignore] pam_succeed_if.so service notin login:gdm:xdm:kdm:kde:xscreensaver:gnome-screensaver:kscreensaver quiet use_uid {include if "with-smartcard-required"}
auth [success=done ignore=ignore default=die] pam_sss.so require_cert_auth ignore_authinfo_unavail {include if "with-smartcard-required"}
auth sufficient pam_u2f.so cue {include if "with-pam-u2f" and "with-pam-u2f-priority"}
auth sufficient pam_fprintd.so {include if "with-fingerprint"}
auth sufficient pam_u2f.so cue {include if "with-pam-u2f"}
Comment thread

@gemini-code-assist gemini-code-assist Bot Jun 3, 2026

Copy link
Copy Markdown

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

When both with-pam-u2f and with-pam-u2f-priority are enabled, pam_u2f.so will be included twice in the PAM stack (at line 7 and line 9). To prevent this duplicate entry, line 9 should only be included if with-pam-u2f is enabled and with-pam-u2f-priority is not enabled.

auth        sufficient                                   pam_u2f.so cue                                         {include if "with-pam-u2f" and not "with-pam-u2f-priority"}

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@asakure asakure Jun 3, 2026

Copy link
Copy Markdown
Contributor Author

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I didn't notice this issue yet during my tests on RHEL 9.6.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
auth required pam_u2f.so cue {if not "without-pam-u2f-nouserok":nouserok} {include if "with-pam-u2f-2fa"}
Expand Down
5 changes: 5 additions & 0 deletions 5 profiles/winbind/README
Show comments
View file
Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,11 @@ with-pam-u2f::
with-pam-u2f-2fa::
Enable 2nd factor authentication via u2f dongle through *pam_u2f*.

with-pam-u2f-priority::
Prioritize U2F authentication before fingerprint when both
with-fingerprint and with-pam-u2f are enabled. This avoids delays
when a U2F hardware token is already connected.

without-pam-u2f-nouserok::
Module argument nouserok is omitted if also with-pam-u2f-2fa is used.
*WARNING*: Omitting nouserok argument means that users without pam-u2f
Expand Down
3 changes: 3 additions & 0 deletions 3 profiles/winbind/REQUIREMENTS
Show comments
View file
Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,6 @@ Make sure that winbind service is configured and enabled. See winbind documentat
{include if "with-systemd-homed"}
- with-systemd-homed is selected, make sure that the system-homed service is enabled {include if "with-systemd-homed"}
- systemctl enable --now systemd-homed.service {include if "with-systemd-homed"}
{include if "with-pam-u2f-priority"}
- with-pam-u2f-priority is selected, pam_u2f.so module will take preference over {include if "with-pam-u2f-priority"}
pam_fprintd.so module in system-auth file. {include if "with-pam-u2f-priority"}
1 change: 1 addition & 0 deletions 1 profiles/winbind/system-auth
Show comments
View file
Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ auth required pam_env.so
auth required pam_faildelay.so delay=2000000
auth required pam_faillock.so preauth silent {include if "with-faillock"}
auth sufficient pam_fprintd.so {include if "with-fingerprint"}
auth sufficient pam_u2f.so cue {include if "with-pam-u2f" and "with-pam-u2f-priority"}
auth sufficient pam_u2f.so cue {include if "with-pam-u2f"}
auth required pam_u2f.so cue {if not "without-pam-u2f-nouserok":nouserok} {include if "with-pam-u2f-2fa"}
-auth [success=done authtok_err=bad perm_denied=bad maxtries=bad default=ignore] pam_systemd_home.so {include if "with-systemd-homed"}
Expand Down
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.