Don't users with a pre-4.1 password

The old error message and behavior was lost with the new implementation.
This commit is contained in:
Markus Mäkelä 2017-01-30 16:16:45 +02:00
parent 5494b262d3
commit b2c018a986

View File

@ -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++;
}