From e06eb68226061e1b6e369f4aebe3b3c07ce1f2c7 Mon Sep 17 00:00:00 2001 From: Ben Lindstrom Date: Thu, 4 Jul 2002 00:27:21 +0000 Subject: - (bal) Failed password attempts don't increment counter on AIX. Bug #145 --- auth.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'auth.c') diff --git a/auth.c b/auth.c index 066b50d6..693826a9 100644 --- a/auth.c +++ b/auth.c @@ -256,6 +256,14 @@ auth_log(Authctxt *authctxt, int authenticated, char *method, char *info) get_remote_ipaddr(), get_remote_port(), info); + +#ifdef WITH_AIXAUTHENTICATE + if (authenticated == 0 && strcmp(method, "password") == 0) + loginfailed(authctxt->user, + get_canonical_hostname(options.verify_reverse_mapping), + "ssh"); +#endif /* WITH_AIXAUTHENTICATE */ + } /* -- cgit v1.2.3