Skip to content
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

Support Authentication Plugins like authentication_ldap_simple #125

Open
alereca opened this issue Jan 27, 2023 · 0 comments · May be fixed by #133
Open

Support Authentication Plugins like authentication_ldap_simple #125

alereca opened this issue Jan 27, 2023 · 0 comments · May be fixed by #133
Labels
enhancement New feature or request

Comments

@alereca
Copy link
Contributor

alereca commented Jan 27, 2023

What problem are you facing?

I would like to create mysql (v8.0+) users identified by ldap (authentication_ldap_simple) instead of by password (mysql_native_password).
Also it would be great if authenticating by auth_socket would be supported as well.

How could Crossplane help solve your problem?

This code might be changed

query := fmt.Sprintf(
		"CREATE USER %s@%s IDENTIFIED BY %s%s",
		mysql.QuoteValue(username),
		mysql.QuoteValue(host),
		mysql.QuoteValue(pw),
		resourceOptions,
	)

https://github.com/crossplane-contrib/provider-sql/blob/master/pkg/controller/mysql/user/reconciler.go#L261

To something like this if some plugin was provided

query := fmt.Sprintf(
		"CREATE USER %s@%s IDENTIFIED WITH %s%s",
		mysql.QuoteValue(username),
		mysql.QuoteValue(host),
		mysql.QuoteValue(plugin),
		resourceOptions,
	)

I would like to work in a pr if this feature is considered as desirable

@alereca alereca added the enhancement New feature or request label Jan 27, 2023
@alereca alereca linked a pull request Mar 6, 2023 that will close this issue
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant