summaryrefslogtreecommitdiffstats
path: root/mysql-test/main/change_user_notembedded.test
diff options
context:
space:
mode:
Diffstat (limited to 'mysql-test/main/change_user_notembedded.test')
-rw-r--r--mysql-test/main/change_user_notembedded.test26
1 files changed, 26 insertions, 0 deletions
diff --git a/mysql-test/main/change_user_notembedded.test b/mysql-test/main/change_user_notembedded.test
new file mode 100644
index 00000000..19421c6d
--- /dev/null
+++ b/mysql-test/main/change_user_notembedded.test
@@ -0,0 +1,26 @@
+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;
+
+--echo that's all
+