Debian Codegraph @

mysql-test/suite/auth_sec/t/password_expiry_message.test

raw
1 --echo #
2 --echo # Bug#33822602: Improve MY-010928 your password has expired
3 --echo # error on the server to show the user
4 --echo #
5
6 --disable_query_log
7 CALL mtr.add_suppression("Password for the account");
8 --enable_query_log
9
10 --echo # Create test user and expire the password
11 CREATE USER u33822602 IDENTIFIED BY 'some_password' PASSWORD EXPIRE;
12
13 --echo # Attempt to connect with expired password should fail
14 --echo # if client cannot handle sandbox mode
15 --error 1
16 --exec $MYSQL -uu33822602 -psome_password --connect-expired-password=FALSE -e "EXIT" 2>&1
17
18 --connection default
19 DROP USER u33822602;
20
21 --echo # Check error log for the presence of error message related to password expiry
22 --let SEARCH_FILE= $MYSQLTEST_VARDIR/log/mysqld.1.err
23 --let SEARCH_PATTERN=Password for the account 'u33822602'@'localhost' has expired. To log in, either change it using a client that supports expired passwords or send the change request to an administrator.
24 --source include/search_pattern.inc
25