From 11c3e6ac91789172830eb3826c423b9d80361704 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20M=C3=A4kel=C3=A4?= Date: Mon, 30 Jan 2017 16:16:45 +0200 Subject: [PATCH] Don't users with a pre-4.1 password The old error message and behavior was lost with the new implementation. --- server/modules/authenticator/MySQLAuth/dbusers.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/server/modules/authenticator/MySQLAuth/dbusers.c b/server/modules/authenticator/MySQLAuth/dbusers.c index f9e7ddf78..8e0a0b60b 100644 --- a/server/modules/authenticator/MySQLAuth/dbusers.c +++ b/server/modules/authenticator/MySQLAuth/dbusers.c @@ -318,7 +318,16 @@ void add_mysql_user(sqlite3 *handle, const char *user, const char *host, if (pw && *pw) { - if (*pw == '*') + if (strlen(pw) == 16) + { + MXS_ERROR("The user %s@%s has on old password in the " + "backend database. MaxScale does not support these " + "old passwords. This user will not be able to connect " + "via MaxScale. Update the users password to correct " + "this.", user, host); + return; + } + else if (*pw == '*') { pw++; }