server: Fix authentication with MySQL 5.1 and older clients#29732
server: Fix authentication with MySQL 5.1 and older clients#29732dveeden wants to merge 2 commits intopingcap:masterfrom
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. DetailsReviewer 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 |
djshow832
left a comment
There was a problem hiding this comment.
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:
handleAuthPluginchecks for theClientPluginAuthcapability but this didn't set theAuthPlugincausingreadOptionalSSLRequestAndHandshakeResponseto return an error.Note that this allows authentication for users that use
mysql_native_passwordto work, but users usingcaching_sha2_passwordswon't work.This does now return a more specific error in case authentication with
caching_sha2_passwordis used.Check List
Tests
Side effects
Documentation
Release note