diff options
author | Sergei Golubchik <serg@mariadb.org> | 2022-01-05 22:55:07 +0100 |
---|---|---|
committer | Sergei Golubchik <serg@mariadb.org> | 2022-01-17 18:19:29 +0100 |
commit | 7b555ff2c5cd5e7436cf9151790889aa9bcd6a70 (patch) | |
tree | fe78559227fbb781591bedec25014b79d1004f3f /include/mysql | |
parent | da76d25ab482c74c7b3eb66935865fee4c474f49 (diff) | |
download | mariadb-git-7b555ff2c5cd5e7436cf9151790889aa9bcd6a70.tar.gz |
MDEV-27341 Use SET PASSWORD to change PAM service
SET PASSWORD = PASSWORD('foo') would fail for pam plugin with
ERROR HY000: SET PASSWORD is ignored for users authenticating via pam plugin
but SET PASSWORD = 'foo' would not.
Now it will.
Diffstat (limited to 'include/mysql')
-rw-r--r-- | include/mysql/plugin_auth.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/mysql/plugin_auth.h b/include/mysql/plugin_auth.h index ae9c9368f15..3827db33431 100644 --- a/include/mysql/plugin_auth.h +++ b/include/mysql/plugin_auth.h @@ -147,7 +147,8 @@ struct st_mysql_auth @return 0 for ok, 1 for error - Can be NULL. + Can be NULL, in this case one will not be able to use SET PASSWORD or + PASSWORD('...') in GRANT, CREATE USER, ALTER USER. */ int (*hash_password)(const char *password, size_t password_length, char *hash, size_t *hash_length); |