Skip to content

Fix old_password authentication via OldAuthSwitchRequest #524

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

Merged
merged 1 commit into from
Nov 29, 2016

Conversation

julienschmidt
Copy link
Member

Description

If CLIENT_PLUGIN_AUTH capability is not supported, no new cipher is sent and we have to keep using the cipher sent in the init packet.

Fixes #518

If CLIENT_PLUGIN_AUTH capability is not supported, no new cipher is
sent have to keep using the cipher sent in the init packet.

Fixes #518
@julienschmidt julienschmidt added this to the v1.3 milestone Nov 27, 2016
This was referenced Nov 27, 2016
@julienschmidt
Copy link
Member Author

I wish we could add tests for this, but it heavily depends on the behavior of the server. Thus, we would have to mock the server in the tests. If someone wants to work on that, please go ahead! I'd be happy to help pointing to the relevant protocol documentation and code.

Copy link
Member

@arnehormann arnehormann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I didn't try to reproduce it (not that easy, as you said in #518), but your reasoning and the code changes look sound and match the documentation. LGTM

@julienschmidt julienschmidt merged commit 4ac31a9 into master Nov 29, 2016
@julienschmidt julienschmidt deleted the old_passwords branch November 29, 2016 05:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants