summaryrefslogtreecommitdiffstats
path: root/mysql-test/suite/rpl/t/rpl_strict_password_validation.test
blob: c4dda1e1269351d60d3984eea68e1ad1cbc671f0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
if (!$SIMPLE_PASSWORD_CHECK_SO) {
    skip No SIMPLE_PASSWORD_CHECK plugin;
}

--source include/master-slave.inc


--connection slave
install soname "simple_password_check";
select @@strict_password_validation;

--connection master
create user foo1 identified by password '11111111111111111111111111111111111111111';
set password for foo1 = PASSWORD('PLAINtext-password!!99');
drop user foo1;
--sync_slave_with_master

--connection slave
--error ER_OPTION_PREVENTS_STATEMENT
create user foo1 identified by password '11111111111111111111111111111111111111111';

uninstall plugin simple_password_check;

--source include/rpl_end.inc