Added log messages for failed authentication attempts.
This commit is contained in:
Markus Makela
2015-03-30 15:43:51 +03:00
parent 5f422a96fc
commit 3a0807251c

View File

@ -530,6 +530,12 @@ static int gw_mysql_do_authentication(DCB *dcb, GWBUF *queue) {
if (auth_ret == 0) {
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 */
if (auth_token) {