mirror of
https://github.com/ansible-collections/community.mysql.git
synced 2025-08-02 20:24:24 -07:00
Update plugins/module_utils/user.py
Co-authored-by: Andrew Klychkov <aaklychkov@mail.ru>
This commit is contained in:
parent
cf3fb56827
commit
fc6639815b
1 changed files with 1 additions and 1 deletions
|
@ -400,7 +400,7 @@ def user_mod(cursor, user, host, host_all, password, encrypted,
|
|||
query_with_args = "ALTER USER %s@%s IDENTIFIED WITH %s AS %s", (user, host, plugin, plugin_hash_string)
|
||||
elif plugin_auth_string:
|
||||
# Mysql and MariaDB differ in naming pam plugin and syntax to set it
|
||||
if plugin in ('pam'):
|
||||
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'):
|
||||
query_with_args = "ALTER USER %s@%s IDENTIFIED WITH %s USING PASSWORD(%s)", (user, host, plugin, plugin_auth_string)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue