Skip to content
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.

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

homed different login if configured 2FA is no present, depending on PIN entry #25875

Open
schaarsc opened this issue Dec 27, 2022 · 1 comment
Labels
bug 🐛 Programming errors, that need preferential fixing homed homed, homectl, pam_homed

Comments

@schaarsc
Copy link

schaarsc commented Dec 27, 2022

systemd version the issue has been seen with

254

Used distribution

No response

Linux kernel version used

No response

CPU architectures issue was seen on

None

Component

systemd-homed

Expected behaviour you didn't see

it should not make a difference for the fallback login flow, whether a PIN was entered or not

Unexpected behaviour you saw

Steps to reproduce the problem

0. create user

sudo homectl create --storage=luks --fs-type=btrfs \
--fido2-device=auto --fido2-with-client-pin=yes --fido2-with-user-presence=no --recovery-key=yes \
--image-path=/dev/disk/by-id/usb-_-0:0  testUser

1. missing token

su - testUser
Passwort: 
Security token PIN: <enter something>
Security token of user testUser not inserted.
Try again with password: 
--> OK, login without 2FA using password as fallback

2. empty token pin

su - testUser
Passwort: 
Security token PIN: <press return without pin>
su: warning: cannot change directory to /home/testUser: permission denied
-bash: /home/testUser/.bash_profile: permission denied

Expected

  • use the password as fallback

Additional program output to the terminal or log subsystem illustrating the issue

No response

@schaarsc schaarsc added the bug 🐛 Programming errors, that need preferential fixing label Dec 27, 2022
@github-actions github-actions bot added the homed homed, homectl, pam_homed label Dec 27, 2022
@schaarsc
Copy link
Author

found an older issue about using password as fallback #19872

assuming that most people would like to have the fallback, it would be nice to mention this maybe in the man page

except for the fallback part the reset of the original post is still valid for v254. the login flow is different for "Security token PIN" is empty and "Security token PIN" is not empty. I will edit the issue accordingly

@schaarsc schaarsc changed the title homed should abort login if configured 2FA is no present homed different login if configured 2FA is no present, depending on PIN entry Jan 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Programming errors, that need preferential fixing homed homed, homectl, pam_homed
Development

No branches or pull requests

1 participant