google / google/google-authenticator-libpam

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

Open
#258 1 comment 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
C
Stars
2k
Forks
305
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.