Update plugins/module_utils/user.py

This commit is contained in:
Andrew Klychkov 2024-09-09 12:31:54 +02:00 committed by GitHub
commit 10e6a56f66
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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 == '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']: