MXS-2355 If client is using the wrong authenticator, attempt a switch

Some SQL clients may default to a different authentication plugin than
"mysql_native_password". Since this is the only one supported by MySQL-
authenticator, the client is instructed to swap its plugin.
This commit is contained in:
Esa Korhonen
2019-03-15 19:41:58 +02:00
parent 216eb904c5
commit 9236ace077
3 changed files with 179 additions and 18 deletions

View File

@ -712,6 +712,7 @@ gw_read_do_authentication(DCB *dcb, GWBUF *read_buffer, int nbytes_read)
}
next_sequence++;
((MYSQL_session*)(dcb->data))->next_sequence = next_sequence;
/**
* The first step in the authentication process is to extract the