-
Notifications
You must be signed in to change notification settings - Fork 352
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
login: T4943: use pam-auth-update to enable/disable Google authenticator #2584
Conversation
The initial version always enabled Google authenticator (2FA/MFA) support by hardcoding the PAM module for sshd and login. This change only enables the PAM module on demand if any use has 2FA/MFA configured. Enabling the module is done system wide via pam-auth-update by using a predefined template. Can be tested using: set system login user vyos authentication plaintext-password vyos set system login user vyos authentication otp key 'QY735IG5HDHBFHS5W7Y2A4EM274SMT3O' See https://docs.vyos.io/en/latest/configuration/system/login.html for additional details.
6cd1c47
to
e134dc4
Compare
Incorporated requested changes by @zdc |
Would it make sense to rename it from "Google Authenticator" to just "Authenticator"? |
Well it was invented by Google that should be honored. I use it with Microsoft authenticator, too. |
@Mergifyio backport sagitta |
✅ Backports have been created
|
@c-po that makes sense. |
Change Summary
The initial version always enabled Google authenticator (2FA/MFA) support by hardcoding the PAM module for sshd and login.
This change only enables the PAM module on demand if any use has 2FA/MFA configured. Enabling the module is done system wide via pam-auth-update by using a predefined template.
Can be tested using:
See https://docs.vyos.io/en/latest/configuration/system/login.html for additional details.
Types of changes
Related Task(s)
Related PR(s)
Component(s) name
login
Proposed changes
How to test
Smoketest result
Checklist: