summaryrefslogtreecommitdiff
path: root/auth.c
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@zip.com.au>2003-05-02 23:42:25 +1000
committerDarren Tucker <dtucker@zip.com.au>2003-05-02 23:42:25 +1000
commit97363a8b24601bad631f6f187c487a166f7eb959 (patch)
tree22ddbb3b4756f7579003e3f18b2a2e690cf5d11d /auth.c
parent3c01654deb235191d798a5254561624872a7f010 (diff)
- (dtucker) Move handling of bad password authentications into a platform
specific record_failed_login() function (affects AIX & Unicos).
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 }