-
Notifications
You must be signed in to change notification settings - Fork 25
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
Multiple errors on wrong password #119
base: master
Are you sure you want to change the base?
Conversation
gtklock tries to reauthenticate using old wrong password which result the errors. This patch stops authentication if password is incorrect. Signed-off-by: Ganga Ram <[email protected]>
I can't replicate the issue.
I'm not sure how the code in the PR is supposed to work. The PAM_ERROR_MSG case should not be reached if you enter the wrong password. |
When I enter wrong password, it hits PAM_ERROR_MSG and then PAM_PROMPT_ECHO_ON. |
I referred this: In conversation method for ECHO_ON case they take fresh password from user. In the patch, instead of getting fresh password, I have stopped conversation by throwing error which causes pam_authentication failure. The failure is well handled by Otherwise we can take fresh password in ECHO_ON case but it will require many changes. |
If user enters wrong password to unlock, gtklock tries to re-authenticate using old wrong password which result the errors. This patch stops the re-authentication if authentication fails.