mirror of
https://github.com/ansible-collections/community.mysql.git
synced 2025-04-18 16:31:26 -07:00
mysql_user: add correct ed25519 plugin handling when creating a user (#674)
This commit is contained in:
parent
2db131f8c0
commit
3425fdb839
2 changed files with 3 additions and 1 deletions
|
@ -212,7 +212,7 @@ def user_add(cursor, user, host, host_all, password, encrypted,
|
|||
query_with_args = "CREATE USER %s@%s IDENTIFIED WITH %s AS %s", (user, host, plugin, plugin_hash_string)
|
||||
elif plugin and plugin_auth_string:
|
||||
# Mysql and MariaDB differ in naming pam plugin and Syntax to set it
|
||||
if plugin == 'pam': # Used by MariaDB which requires the USING keyword, not BY
|
||||
if plugin in ('pam', 'ed25519'): # Used by MariaDB which requires the USING keyword, not BY
|
||||
query_with_args = "CREATE USER %s@%s IDENTIFIED WITH %s USING %s", (user, host, plugin, plugin_auth_string)
|
||||
elif salt:
|
||||
if plugin in ['caching_sha2_password', 'sha256_password']:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue