sidorares / node-mysql2

:zap: fast mysqljs/mysql compatible mysql driver for node.js
https://sidorares.github.io/node-mysql2/
MIT License
4.05k stars 613 forks source link

Add support for auth_gssapi_client MariaDB authentication plugin #2819

Open Flofus opened 3 months ago

Flofus commented 3 months ago

i want to connect to my mariadb and i got

Error: Server requests authentication using unknown plugin auth_gssapi_client. See TODO: add plugins doco here on how to configure or author authentication plugins.

Do you need more information?

sidorares commented 3 months ago

your server requires clients to use this plugin, and we don't have that supported out of the box

There is a bit of documentation on how to write a plugin and use it in the client here: https://sidorares.github.io/node-mysql2/docs/documentation/authentication-switch

MariaDb page on auth_gssapi_client plugin:

https://mariadb.com/kb/en/authentication-plugin-gssapi/

So you have basically 2 options:

sidorares commented 3 months ago

MariaDB Connector/Node.js does not yet support gssapi authentication.

https://jira.mariadb.org/browse/CONJS-72

sidorares commented 3 months ago

https://github.com/go-sql-driver/mysql/pull/1233

sidorares commented 3 months ago

Some initial search on 'gssapi in node.js':

https://en.wikipedia.org/wiki/Generic_Security_Services_Application_Program_Interface

https://github.com/mongodb-js/kerberos https://www.npmjs.com/package/krb5 https://www.npmjs.com/package/webgss