Debian Codegraph @

mysql-test/suite/rpl/r/rpl_user_account_password_lock.result

raw
1 # test binlog versions of WL#13515 FR4
2 include/master-slave.inc
3 Warnings:
4 Note #### Sending passwords in plain text without SSL/TLS is extremely insecure.
5 Note #### Storing MySQL user name or password information in the connection metadata repository is not secure and is therefore not recommended. Please consider using the USER and PASSWORD connection options for START REPLICA; see the 'START REPLICA Syntax' in the MySQL Manual for more information.
6 [connection master]
7 # CREATE USER
8 [connection master]
9 CREATE USER password_lock_both@localhost FAILED_LOGIN_ATTEMPTS 2 PASSWORD_LOCK_TIME 3;
10 include/sync_slave_sql_with_master.inc
11 [connection slave]
12 SELECT user_attributes FROM mysql.user WHERE user='password_lock_both';
13 user_attributes
14 {"Password_locking": {"failed_login_attempts": 2, "password_lock_time_days": 3}}
15 [connection master]
16 CREATE USER failed_login_attempts@localhost FAILED_LOGIN_ATTEMPTS 2;
17 include/sync_slave_sql_with_master.inc
18 [connection slave]
19 SELECT user_attributes FROM mysql.user WHERE user='failed_login_attempts';
20 user_attributes
21 {"Password_locking": {"failed_login_attempts": 2, "password_lock_time_days": 0}}
22 [connection master]
23 CREATE USER password_lock_time@localhost PASSWORD_LOCK_TIME 3;
24 include/sync_slave_sql_with_master.inc
25 [connection slave]
26 SELECT user_attributes FROM mysql.user WHERE user='password_lock_time';
27 user_attributes
28 {"Password_locking": {"failed_login_attempts": 0, "password_lock_time_days": 3}}
29 [connection master]
30 CREATE USER password_lock_time_unbounded@localhost PASSWORD_LOCK_TIME UNBOUNDED;
31 include/sync_slave_sql_with_master.inc
32 [connection slave]
33 SELECT user_attributes FROM mysql.user WHERE user='password_lock_time_unbounded';
34 user_attributes
35 {"Password_locking": {"failed_login_attempts": 0, "password_lock_time_days": -1}}
36 [connection master]
37 CREATE USER password_lock_none@localhost;
38 include/sync_slave_sql_with_master.inc
39 [connection slave]
40 SELECT user_attributes FROM mysql.user WHERE user='password_lock_none';
41 user_attributes
42 NULL
43 # Show binary log events
44 include/show_binlog_events.inc
45 Log_name Pos Event_type Server_id End_log_pos Info
46 slave-bin.000001 # Query # # use `test`; CREATE USER 'password_lock_both'@'localhost' IDENTIFIED WITH 'caching_sha2_password' FAILED_LOGIN_ATTEMPTS 2 PASSWORD_LOCK_TIME 3
47 slave-bin.000001 # Query # # use `test`; CREATE USER 'failed_login_attempts'@'localhost' IDENTIFIED WITH 'caching_sha2_password' FAILED_LOGIN_ATTEMPTS 2
48 slave-bin.000001 # Query # # use `test`; CREATE USER 'password_lock_time'@'localhost' IDENTIFIED WITH 'caching_sha2_password' PASSWORD_LOCK_TIME 3
49 slave-bin.000001 # Query # # use `test`; CREATE USER 'password_lock_time_unbounded'@'localhost' IDENTIFIED WITH 'caching_sha2_password' PASSWORD_LOCK_TIME UNBOUNDED
50 slave-bin.000001 # Query # # use `test`; CREATE USER 'password_lock_none'@'localhost' IDENTIFIED WITH 'caching_sha2_password'
51 # ALTER USER
52 [connection master]
53 ALTER USER password_lock_both@localhost FAILED_LOGIN_ATTEMPTS 3 PASSWORD_LOCK_TIME 4;
54 [connection slave]
55 SELECT user_attributes FROM mysql.user WHERE user='password_lock_both';
56 user_attributes
57 {"Password_locking": {"failed_login_attempts": 3, "password_lock_time_days": 4}}
58 [connection master]
59 ALTER USER password_lock_both@localhost FAILED_LOGIN_ATTEMPTS 0 PASSWORD_LOCK_TIME 0;
60 [connection slave]
61 SELECT user_attributes FROM mysql.user WHERE user='password_lock_both';
62 user_attributes
63 NULL
64 [connection master]
65 ALTER USER failed_login_attempts@localhost FAILED_LOGIN_ATTEMPTS 3;
66 include/sync_slave_sql_with_master.inc
67 [connection slave]
68 SELECT user_attributes FROM mysql.user WHERE user='failed_login_attempts';
69 user_attributes
70 {"Password_locking": {"failed_login_attempts": 3, "password_lock_time_days": 0}}
71 [connection master]
72 ALTER USER password_lock_time@localhost PASSWORD_LOCK_TIME UNBOUNDED;
73 include/sync_slave_sql_with_master.inc
74 [connection slave]
75 SELECT user_attributes FROM mysql.user WHERE user='password_lock_time';
76 user_attributes
77 {"Password_locking": {"failed_login_attempts": 0, "password_lock_time_days": -1}}
78 [connection master]
79 ALTER USER password_lock_time_unbounded@localhost PASSWORD_LOCK_TIME 1;
80 include/sync_slave_sql_with_master.inc
81 [connection slave]
82 SELECT user_attributes FROM mysql.user WHERE user='password_lock_time_unbounded';
83 user_attributes
84 {"Password_locking": {"failed_login_attempts": 0, "password_lock_time_days": 1}}
85 [connection master]
86 ALTER USER password_lock_none@localhost;
87 include/sync_slave_sql_with_master.inc
88 [connection slave]
89 SELECT user_attributes FROM mysql.user WHERE user='password_lock_none';
90 user_attributes
91 NULL
92 # Show binary log events
93 include/show_binlog_events.inc
94 Log_name Pos Event_type Server_id End_log_pos Info
95 slave-bin.000001 # Query # # use `test`; ALTER USER 'password_lock_both'@'localhost' FAILED_LOGIN_ATTEMPTS 3 PASSWORD_LOCK_TIME 4
96 slave-bin.000001 # Query # # use `test`; ALTER USER 'password_lock_both'@'localhost' FAILED_LOGIN_ATTEMPTS 0 PASSWORD_LOCK_TIME 0
97 slave-bin.000001 # Query # # use `test`; ALTER USER 'failed_login_attempts'@'localhost' FAILED_LOGIN_ATTEMPTS 3
98 slave-bin.000001 # Query # # use `test`; ALTER USER 'password_lock_time'@'localhost' PASSWORD_LOCK_TIME UNBOUNDED
99 slave-bin.000001 # Query # # use `test`; ALTER USER 'password_lock_time_unbounded'@'localhost' PASSWORD_LOCK_TIME 1
100 slave-bin.000001 # Query # # use `test`; ALTER USER 'password_lock_none'@'localhost'
101 [connection master]
102 DROP USER password_lock_both@localhost, failed_login_attempts@localhost, password_lock_time@localhost, password_lock_time_unbounded@localhost, password_lock_none@localhost;
103 include/rpl_end.inc
104 # End of 8.0 tests