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

Question: google-authenticator PAM module is not returning valid error codes #258

Open
raviteja-b opened this issue Oct 29, 2024 · 1 comment

Comments

@raviteja-b
Copy link

pam_google_authenticator identifies different error cases but returns generic PAM_AUTH_ERR

when totp token is not passed then I noticed this trace and I see PAM_AUTH_ERR
pam_google_authenticator: Did not receive verification code from user

when invalid totp token is passed, I noticed this trace which says invalid token but still PAM_AUTH_ERR error returned.
pam_google_authenticator: Invalid verification code for testmfaadmin

pam_authenticate() should return PAM_CRED_INSUFFICIENT, If there is no token is provided

@ThomasHabets
Copy link
Collaborator

That sounds correct. I'll accept well written PRs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants