-
Notifications
You must be signed in to change notification settings - Fork 5.8k
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
server: Fix authentication with MySQL 5.1 and older clients #29732
Conversation
[REVIEW NOTIFICATION] This pull request has not been approved. To complete the pull request process, please ask the reviewers in the list to review by filling The full list of commands accepted by this bot can be found here. Reviewer can indicate their review by submitting an approval review. |
9279a76
to
c4b33c6
Compare
This will need careful merging with #29577 |
So your point is, if a user with |
Please add a test case for your change, if it can be a functional test for |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are no such test cases in TiDB, which is the reason why there are many fix-on-a-fix problems.
Can you try to add a test case so that future modifications won't break the compatibility?
Also, please add a release note so that users can figure out from the user doc that the bugfix is contained in which versions. |
Will any authentication test cases be ported from the MySQL test? @morgo |
Closing this as this is now part of #29738 |
What problem does this PR solve?
Issue Number: close #29725
Problem Summary:
handleAuthPlugin
checks for theClientPluginAuth
capability but this didn't set theAuthPlugin
causingreadOptionalSSLRequestAndHandshakeResponse
to return an error.Note that this allows authentication for users that use
mysql_native_password
to work, but users usingcaching_sha2_passwords
won't work.This does now return a more specific error in case authentication with
caching_sha2_password
is used.Check List
Tests
Side effects
Documentation
Release note