From 97363a8b24601bad631f6f187c487a166f7eb959 Mon Sep 17 00:00:00 2001 From: Darren Tucker Date: Fri, 2 May 2003 23:42:25 +1000 Subject: - (dtucker) Move handling of bad password authentications into a platform specific record_failed_login() function (affects AIX & Unicos). --- auth.c | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) (limited to 'auth.c') diff --git a/auth.c b/auth.c index ba26034d..10f7b2a1 100644 --- a/auth.c +++ b/auth.c @@ -268,13 +268,10 @@ auth_log(Authctxt *authctxt, int authenticated, char *method, char *info) get_remote_port(), info); -#ifdef WITH_AIXAUTHENTICATE +#ifdef CUSTOM_FAILED_LOGIN if (authenticated == 0 && strcmp(method, "password") == 0) - loginfailed(authctxt->user, - get_canonical_hostname(options.verify_reverse_mapping), - "ssh"); -#endif /* WITH_AIXAUTHENTICATE */ - + record_failed_login(authctxt->user, "ssh"); +#endif } /* @@ -496,10 +493,8 @@ getpwnamallow(const char *user) if (pw == NULL) { logit("Illegal user %.100s from %.100s", user, get_remote_ipaddr()); -#ifdef WITH_AIXAUTHENTICATE - loginfailed(user, - get_canonical_hostname(options.verify_reverse_mapping), - "ssh"); +#ifdef CUSTOM_FAILED_LOGIN + record_failed_login(user, "ssh"); #endif return (NULL); } -- cgit v1.2.3