Debian Codegraph @

mysql-test/suite/plugins/t/max_password_errors_auth_named_pipe.test

raw
1 # Tests that max_password_errors has no effect on login errors with
2 # passwordless plugins (Windows version / auth_named_pipe)
3
4 --source include/not_embedded.inc
5 --source include/have_auth_named_pipe.inc
6 if (`SELECT '$USERNAME' = 'nosuchuser'`) {
7 skip skipped for nosuchuser;
8 }
9 set @old_max_password_errors=@@max_password_errors;
10 create user nosuchuser identified with 'named_pipe';
11
12 set global max_password_errors=1;
13 --replace_result $MASTER_MYSOCK MASTER_SOCKET $MASTER_MYPORT MASTER_PORT
14 error ER_ACCESS_DENIED_NO_PASSWORD_ERROR;
15 connect(pipe_con,localhost,nosuchuser,,,,,PIPE);
16 --replace_result $MASTER_MYSOCK MASTER_SOCKET $MASTER_MYPORT MASTER_PORT
17 error ER_ACCESS_DENIED_NO_PASSWORD_ERROR;
18 connect(pipe_con,localhost,nosuchuser,,,,,PIPE);
19
20 DROP USER nosuchuser;
21 FLUSH PRIVILEGES;
22 set global max_password_errors=@old_max_password_errors;