-
Notifications
You must be signed in to change notification settings - Fork 290
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
Question: google-authenticator PAM library provide option to disable/enable totp authentication runtime at user level #257
Comments
The easiest option is to simply use the If you want to enforce it, then you should probably use some other PAM module that has a list of users, and skip the GA PAM module based on that. |
Yes, we are using nullok, does google-authenticator pam module return any specific return code to identify if user authenticated without totp and requires secret key setup? |
google-authentication pam module does not support user level totp authentication control ?? |
No, and in my opinion that belongs in a separate PAM module, since one could want this for many PAM modules. Looks like there is one already: https://linux.die.net/man/8/pam_listfile |
ok, as per google-authentication pam module what is the right way to disable/enbale TOTP based authentication for an user? |
Here you go. Chatjippity didn't get it right on the first attempt, but the second one looks right. Invert the |
@ThomasHabets I can use this for skipping bypassed MFA users. |
Maybe. But I think someone like you, who has this use case, may need to come up with how to best do this. It sounds to me like if we just want to return another code in the code path of a list of users, then it should be a different PAM module. Something like:
Or "in the list" could instead be "user's |
I have integrated google-authenticator-libpam into PAM configuration of system. System has multiple users while one user wanted to have TOTP based google-authentication while other users wanted to have TOTP based google-authentication disabled and one user may have secret generated while other user may not have secret key setup. currently system has pam static configuration which is common for all users.
I wanted to understand if google-authenticator-libpam can provide any runtime user level configuration to enable or disable TOTP authentication
does google-authenticator PAM library provide any option to enable/disable totp authentication runtime at user level ?
does google-authenticator-libpam identify and return valid error/return code if user needs to have secret key generated to have TOTP authentication ?
The text was updated successfully, but these errors were encountered: