Skip to content

Implement dialog auth plugin #803

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
julienschmidt opened this issue May 23, 2018 · 1 comment
Open

Implement dialog auth plugin #803

julienschmidt opened this issue May 23, 2018 · 1 comment

Comments

@julienschmidt
Copy link
Member

MariaDB and Percona Server use the dialog auth plugin instead of MySQL's mysql_cleartext_password plugin for PAM authentication.

This driver should come with built-in support, as PAM authentication is rather common. The implementation complexity seems low. MariaDB's client implementation can be found here: https://github.com/MariaDB/mariadb-connector-c/blob/master/plugins/auth/dialog.c

@julienschmidt julienschmidt added this to the v1.5.0 milestone May 23, 2018
@tpetr tpetr mentioned this issue Jan 1, 2019
5 tasks
@julienschmidt julienschmidt modified the milestones: v1.5.0, v1.6.0 Apr 24, 2019
@buphmin
Copy link

buphmin commented Jan 14, 2020

I don't know if this will work in every PAM auth setup with mysql/mariadb (we use mariadb). But simply adding a fallthrough in auth.go to mysql_clear_password allowed authentication to work if you follow the rest of the docs on clear passwords. Maybe this will help someone else.

case "dialog":
	fallthrough
case "mysql_clear_password":

@julienschmidt julienschmidt modified the milestones: v1.6.0, v1.7.0 Apr 1, 2021
@methane methane modified the milestones: v1.7.0, v1.8.0 May 2, 2023
@methane methane removed this from the v1.8.0 milestone May 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants