Skip to content

Commit

Permalink
WebIf: show unauthorised access in ncam log
Browse files Browse the repository at this point in the history
  • Loading branch information
javilonas committed Mar 3, 2018
1 parent 91756db commit aafe52a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions module-webif-lib.c
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,10 @@ int32_t check_auth(char *authstring, char *method, char *path, IN_ADDR_T addr, c
}
}
}
if(!authok)
{
cs_log("unauthorized access from %s - invalid credentials", cs_inet_ntoa(addr));
}
return authok;
}

Expand Down
2 changes: 1 addition & 1 deletion module-webif.c
Original file line number Diff line number Diff line change
Expand Up @@ -7957,7 +7957,7 @@ static int32_t process_request(FILE * f, IN_ADDR_T in)
if(!ok)
{
send_error(f, 403, "Forbidden", NULL, "Access denied.", 0);
cs_log("unauthorized access from %s", cs_inet_ntoa(addr));
cs_log("unauthorized access from %s - invalid ip or dyndns", cs_inet_ntoa(addr));
return 0;
}

Expand Down

0 comments on commit aafe52a

Please sign in to comment.