summaryrefslogtreecommitdiffstats
path: root/auth.c
diff options
context:
space:
mode:
authorBen Lindstrom <mouring@eviladmin.org>2002-07-04 00:27:21 +0000
committerBen Lindstrom <mouring@eviladmin.org>2002-07-04 00:27:21 +0000
commite06eb68226061e1b6e369f4aebe3b3c07ce1f2c7 (patch)
tree6366f8c536813f07ac876ab0edc644ef7ae293e7 /auth.c
parent5d35a2f5828cfb0a8579228d80e8bec60c8f8c64 (diff)
- (bal) Failed password attempts don't increment counter on AIX. Bug #145
Diffstat (limited to 'auth.c')
-rw-r--r--auth.c8
1 files changed, 8 insertions, 0 deletions
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 */
+
}
/*