Added logging about authentication errors.
This commit is contained in:
@ -1530,14 +1530,20 @@ int gw_find_mysql_user_password_sha1(char *username, uint8_t *gateway_password,
|
|||||||
* user@% not found.
|
* user@% not found.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
LOGIF(LD,
|
LOGIF(LD,
|
||||||
(skygw_log_write_flush(
|
(skygw_log_write_flush(
|
||||||
LOGFILE_DEBUG,
|
LOGFILE_DEBUG,
|
||||||
"%lu [MySQL Client Auth], user [%s@%s] not existent",
|
"%lu [MySQL Client Auth], user [%s@%s] not existent",
|
||||||
pthread_self(),
|
pthread_self(),
|
||||||
key.user,
|
key.user,
|
||||||
dcb->remote)));
|
dcb->remote)));
|
||||||
break;
|
|
||||||
|
skygw_log_write_flush(
|
||||||
|
LOGFILE_ERROR,
|
||||||
|
"Authentication Failed: user [%s@%s] not found.",
|
||||||
|
key.user,
|
||||||
|
dcb->remote);
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
Reference in New Issue
Block a user