Fix to MXS-54: https://mariadb.atlassian.net/browse/MXS-54
Added log messages for failed authentication attempts.
This commit is contained in:
@ -530,6 +530,12 @@ static int gw_mysql_do_authentication(DCB *dcb, GWBUF *queue) {
|
|||||||
if (auth_ret == 0) {
|
if (auth_ret == 0) {
|
||||||
dcb->user = strdup(client_data->user);
|
dcb->user = strdup(client_data->user);
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
skygw_log_write(LOGFILE_ERROR,
|
||||||
|
"%s: login attempt for user '%s', authentication failed.",
|
||||||
|
dcb->service->name, username);
|
||||||
|
}
|
||||||
|
|
||||||
/* let's free the auth_token now */
|
/* let's free the auth_token now */
|
||||||
if (auth_token) {
|
if (auth_token) {
|
||||||
|
Reference in New Issue
Block a user