From ceba1e5b94df2255205da3904a2a4de104cdb41f Mon Sep 17 00:00:00 2001 From: hubiongithub <79990207+hubiongithub@users.noreply.github.com> Date: Mon, 9 Sep 2024 11:22:50 +0200 Subject: [PATCH] Update plugins/module_utils/user.py Co-authored-by: Andrew Klychkov --- plugins/module_utils/user.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/module_utils/user.py b/plugins/module_utils/user.py index af218a6..0eca0ab 100644 --- a/plugins/module_utils/user.py +++ b/plugins/module_utils/user.py @@ -402,7 +402,7 @@ def user_mod(cursor, user, host, host_all, password, encrypted, # Mysql and MariaDB differ in naming pam plugin and syntax to set it if plugin == 'pam': query_with_args = "ALTER USER %s@%s IDENTIFIED WITH %s USING %s", (user, host, plugin, plugin_auth_string) - elif plugin in ('ed25519'): + elif plugin == 'ed25519': query_with_args = "ALTER USER %s@%s IDENTIFIED WITH %s USING PASSWORD(%s)", (user, host, plugin, plugin_auth_string) elif salt: if plugin in ['caching_sha2_password', 'sha256_password']: