mirror of
https://github.com/MariaDB/server.git
synced 2025-01-16 12:02:42 +01:00
bfc71e63a7
allow only three failed change_user per connection. successful change_user do NOT reset the counter tests/mysql_client_test.c: make --error to work for --change_user errors
24 lines
460 B
Text
24 lines
460 B
Text
source include/not_embedded.inc;
|
|
|
|
#
|
|
# MDEV-3915 COM_CHANGE_USER allows fast password brute-forcing
|
|
#
|
|
# only three failed change_user per connection.
|
|
# successful change_user do NOT reset the counter
|
|
#
|
|
connect (test,localhost,root,,);
|
|
connection test;
|
|
--error 1045
|
|
change_user foo,bar;
|
|
--error 1045
|
|
change_user foo;
|
|
change_user;
|
|
--error 1045
|
|
change_user foo,bar;
|
|
--error 1047
|
|
change_user foo,bar;
|
|
--error 1047
|
|
change_user;
|
|
disconnect test;
|
|
connection default;
|
|
|