Skip to content

Commit

Permalink
document that sha256 and caching_sha2 plugins doesn't work properly
Browse files Browse the repository at this point in the history
Even if you use print_identified_with_as_hex to prevent the password to
contains binary characters. I think this is because PyMySQL and
mysqlclient wrap the password in quote. We could try to convert to
another python connector, like mysql-connector-python.
  • Loading branch information
laurent-indermuehle committed Sep 22, 2023
1 parent c2549ef commit cc03364
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion plugins/modules/mysql_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@
- users_privs
register: result
# Don't work with sha256_password and cache_sha2_password
- name: Clone users on another server - Step 2
community.mysql.mysql_user:
name: "{{ item.name }}"
Expand Down Expand Up @@ -219,7 +220,8 @@
description:
Information about users accounts. The output can be used as an input of the
mysql_user plugin. Useful when migrating accounts to a new server or to
create an inventory. Does not support proxy privileges.
create an inventory. Does not support proxy privileges. Cause issue with
authentications plugins sha256_password and caching_sha2_password.
returned: if not excluded by filter
type: dict
sample:
Expand Down

0 comments on commit cc03364

Please sign in to comment.