node-mysql2
node-mysql2 copied to clipboard
Add support for auth_gssapi_client MariaDB authentication plugin
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?
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:
- change server config and allow some "standard" mysql auth methods (
mysql_native_password,caching_sha2_password) - or write client side implementation of
auth_gssapi_clientplugin flow ( or wait until somebody makes it for you )
MariaDB Connector/Node.js does not yet support gssapi authentication.
https://jira.mariadb.org/browse/CONJS-72
https://github.com/go-sql-driver/mysql/pull/1233
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