[CONJ-663] Implement caching_sha2_password plugin Created: 2018-12-02 Updated: 2019-10-11 Resolved: 2019-09-27 |
|
| Status: | Closed |
| Project: | MariaDB Connector/J |
| Component/s: | MySQL compatibility, mysql_compatibility |
| Affects Version/s: | 2.3.0 |
| Fix Version/s: | 2.5.0 |
| Type: | Task | Priority: | Critical |
| Reporter: | Ryan Leach | Assignee: | Diego Dupin |
| Resolution: | Fixed | Votes: | 4 |
| Labels: | None | ||
| Issue Links: |
|
||||||||||||||||||||||||||||||||||||
| Description |
|
MySQL 8.0 introduced a new authentication plugin "caching_sha2_password" plugin, which is enabled by default and will be used as standard plugin: Workflow: 1) Server sends scramble packet digest1= sha256(password) On success server sends a packet with length=1 and content=3. In case the password was not cached, server requires same authentication mechanism as in sha256_password with a little difference, the padding algorithm is PKCS1 v1.5 padding instead of OAEP. |
| Comments |
| Comment by Varun Agrawal [ 2019-02-20 ] | |||||||||||||||
|
Is this in progress? | |||||||||||||||
| Comment by balyn [ 2019-04-10 ] | |||||||||||||||
|
guys, why mariadb-connector-odbc is not exists in mariadb centos repo? | |||||||||||||||
| Comment by Geoff Montee (Inactive) [ 2019-04-10 ] | |||||||||||||||
|
We don't build RPMs for MariaDB Connector/ODBC yet. That is tracked at ODBC-153. To install MariaDB Connector/ODBC on Linux, see here: | |||||||||||||||
| Comment by balyn [ 2019-04-10 ] | |||||||||||||||
|
Thank you for the answer! Will wait for rpm | |||||||||||||||
| Comment by Yanming Zhou [ 2019-10-10 ] | |||||||||||||||
|
mariadb-java-client-2.5.0 and 8.0.17 MySQL Community Server
buffer.getByteAt(1) return unexpected 25 | |||||||||||||||
| Comment by Diego Dupin [ 2019-10-10 ] | |||||||||||||||
|
Can you provide some other informations? Windows/Linux, connection string ... ? | |||||||||||||||
| Comment by Diego Dupin [ 2019-10-10 ] | |||||||||||||||
|
And if you can retry with SNAPSHOT repository :
The error will now log the packet in case of unexpected protocol. That would help a lot | |||||||||||||||
| Comment by Yanming Zhou [ 2019-10-11 ] | |||||||||||||||
|
Oracle JDK 1.8.0_221, macOS Mojave, mysql 8.0.17 run with docker, works fine with mysql-connector-java. | |||||||||||||||
| Comment by Diego Dupin [ 2019-10-11 ] | |||||||||||||||
|
ok, reproduced. |