summaryrefslogtreecommitdiff
path: root/auth.c
diff options
context:
space:
mode:
Diffstat (limited to 'auth.c')
-rw-r--r--auth.c15
1 files changed, 5 insertions, 10 deletions
diff --git a/auth.c b/auth.c
index ba26034d5..10f7b2a1f 100644
--- a/auth.c
+++ b/auth.c
@@ -268,13 +268,10 @@ auth_log(Authctxt *authctxt, int authenticated, char *method, char *info)
268 get_remote_port(), 268 get_remote_port(),
269 info); 269 info);
270 270
271#ifdef WITH_AIXAUTHENTICATE 271#ifdef CUSTOM_FAILED_LOGIN
272 if (authenticated == 0 && strcmp(method, "password") == 0) 272 if (authenticated == 0 && strcmp(method, "password") == 0)
273 loginfailed(authctxt->user, 273 record_failed_login(authctxt->user, "ssh");
274 get_canonical_hostname(options.verify_reverse_mapping), 274#endif
275 "ssh");
276#endif /* WITH_AIXAUTHENTICATE */
277
278} 275}
279 276
280/* 277/*
@@ -496,10 +493,8 @@ getpwnamallow(const char *user)
496 if (pw == NULL) { 493 if (pw == NULL) {
497 logit("Illegal user %.100s from %.100s", 494 logit("Illegal user %.100s from %.100s",
498 user, get_remote_ipaddr()); 495 user, get_remote_ipaddr());
499#ifdef WITH_AIXAUTHENTICATE 496#ifdef CUSTOM_FAILED_LOGIN
500 loginfailed(user, 497 record_failed_login(user, "ssh");
501 get_canonical_hostname(options.verify_reverse_mapping),
502 "ssh");
503#endif 498#endif
504 return (NULL); 499 return (NULL);
505 } 500 }