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:
@ -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;
|
||||
|
Reference in New Issue
Block a user