summaryrefslogtreecommitdiffhomepage
path: root/svr-authpasswd.c
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2004-12-23 17:00:15 +0000
committerMatt Johnston <matt@ucc.asn.au>2004-12-23 17:00:15 +0000
commit9d4318370418b66796d370cb1fa05d49c28920b0 (patch)
treeed87ba82226d3eddce366b14a29d71464ebe4921 /svr-authpasswd.c
parente7677a5e8ddaa4787659a1a9e5320369c94564e4 (diff)
Log the IP along with auth success/fail attempts
--HG-- extra : convert_revision : 25eab43bd46e931fd4afecec49c22b9311062099
Diffstat (limited to 'svr-authpasswd.c')
-rw-r--r--svr-authpasswd.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/svr-authpasswd.c b/svr-authpasswd.c
index 458deef..4348817 100644
--- a/svr-authpasswd.c
+++ b/svr-authpasswd.c
@@ -88,13 +88,15 @@ void svr_auth_password() {
if (strcmp(testcrypt, passwdcrypt) == 0) {
/* successful authentication */
dropbear_log(LOG_NOTICE,
- "password auth succeeded for '%s'",
- ses.authstate.printableuser);
+ "password auth succeeded for '%s' from %s",
+ ses.authstate.printableuser,
+ svr_ses.addrstring);
send_msg_userauth_success();
} else {
dropbear_log(LOG_WARNING,
- "bad password attempt for '%s'",
- ses.authstate.printableuser);
+ "bad password attempt for '%s' from %s",
+ ses.authstate.printableuser,
+ svr_ses.addrstring);
send_msg_userauth_failure(0, 1);
}