MySQL 8 JDBC Driver LDAP Authentication Issue: BadAuthenticationPlugin Error When Connecting to Doris #54356
Unanswered
zhenyue-xu
asked this question in
A - General / Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Problem Description
I'm encountering an issue when trying to connect to Doris with LDAP authentication using MySQL 8 JDBC driver. The same approach works perfectly with MySQL 5 driver but fails with MySQL 8.
Error Message:
Working Solution with MySQL 5 Driver
Following the official Doris documentation https://doris.apache.org/docs/admin-manual/auth/ldap , I can successfully connect using MySQL 5 JDBC driver (
com.mysql.jdbc.Driver
) with this configuration:Custom Plugin:
Connection Configuration:
Failed Attempt with MySQL 8 Driver
When using MySQL 8 JDBC driver (
com.mysql.cj.jdbc.Driver
), I tried adapting the configuration:Custom Plugin for MySQL 8:
Connection Configuration:
Questions
Additional Information
The MySQL 8 driver architecture seems to have changed the authentication plugin system significantly compared to MySQL 5. The package names and class structures are different:
com.mysql.jdbc.authentication.*
com.mysql.cj.protocol.a.authentication.*
Any guidance on the correct approach for MySQL 8 LDAP authentication would be greatly appreciated!
Beta Was this translation helpful? Give feedback.
All reactions