added Failed Login auditing

pull/103/head
Riccardo Pizzi 2015-02-07 16:18:05 -05:00
parent 9d66bfbdd3
commit de390805f1
1 changed files with 1 additions and 1 deletions

View File

@ -224,7 +224,7 @@ static void audit(ThdSesData *pThdData)
if (record_logins_enable) { if (record_logins_enable) {
const char * cmd = pThdData->getCmdName(); const char * cmd = pThdData->getCmdName();
const char * user = pThdData->getUserName(); const char * user = pThdData->getUserName();
if (!strcasecmp(cmd, "Connect") || !strcasecmp(cmd, "Quit")) { if (!strcasecmp(cmd, "Connect") || !strcasecmp(cmd, "Quit") || !strcasecmp(cmd, "Failed Login")) {
if(user && strlen( user)) if(user && strlen( user))
Audit_handler::log_audit_all(pThdData); Audit_handler::log_audit_all(pThdData);
return; return;