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 ?