1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

MDEV-25258 : SET PASSWORD command fail with wsrep api

Problem was that we should skip strict password validation on
applier nodes similarly as is done for slave nodes.
This commit is contained in:
Jan Lindström
2021-04-27 10:41:36 +03:00
parent c6dbabed56
commit f946192e6f
3 changed files with 38 additions and 1 deletions

View File

@ -1566,7 +1566,11 @@ static bool validate_password(LEX_USER *user, THD *thd)
else
{
if (!thd->slave_thread &&
strict_password_validation && has_validation_plugins())
strict_password_validation && has_validation_plugins()
#ifdef WITH_WSREP
&& !thd->wsrep_applier
#endif
)
{
my_error(ER_OPTION_PREVENTS_STATEMENT, MYF(0), "--strict-password-validation");
return true;