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

If the challenge-response cannot be updated, show the correct error message #181

Merged
merged 1 commit into from
Jan 15, 2019

Conversation

buzzert
Copy link
Contributor

@buzzert buzzert commented Jan 14, 2019

If the PAM module cannot update the challenge response file (due to permissions errors, usually), the incorrect error message is displayed "Error communicating with YubiKey...".

This is a small patch that makes it so the correct error message is sent to the PAM client, which makes resolving this issue a lot easier.

However a broader question might be: should authentication succeed if this fails?

Attached a simple PAM client test program
pamtest.zip

…correct error message is displayed

If the PAM module cannot update the challenge response file (due to permissions errors, usually), the incorrect error message is displayed "Error communicating with YubiKey...".

This patch makes it so the correct error message is sent to the PAM client, which makes resolving this issue a lot easier.
@klali
Copy link
Member

klali commented Jan 15, 2019

Thanks, merging.

Good question on when authentication should succeed vs. when not, I don't have a ready answer though.

@klali klali merged commit 413037c into Yubico:master Jan 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants