diff options
author | Damien Miller <djm@mindrot.org> | 2001-11-13 23:46:18 +1100 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2001-11-13 23:46:18 +1100 |
commit | e49d0966b5e8e4ff4eb993f1b8511932dfcf7bf8 (patch) | |
tree | 8f89c9cfa2f0af078577106fd3492c7af192caf9 /auth2.c | |
parent | 056ca1eb473e2d4bd9fa867feb26f94a36f5d877 (diff) |
- (djm) AIX login{success,failed} changes. Move loginsuccess call to
do_authenticated. Call loginfailed for protocol 2 failures > MAX like
we do for protocol 1. Reports from Ralf Wenk <wera0003@fh-karlsruhe.de>,
K.Wolkersdorfer@fz-juelich.de and others
Diffstat (limited to 'auth2.c')
-rw-r--r-- | auth2.c | 12 |
1 files changed, 7 insertions, 5 deletions
@@ -57,10 +57,6 @@ extern ServerOptions options; | |||
57 | extern u_char *session_id2; | 57 | extern u_char *session_id2; |
58 | extern int session_id2_len; | 58 | extern int session_id2_len; |
59 | 59 | ||
60 | #ifdef WITH_AIXAUTHENTICATE | ||
61 | extern char *aixloginmsg; | ||
62 | #endif | ||
63 | |||
64 | static Authctxt *x_authctxt = NULL; | 60 | static Authctxt *x_authctxt = NULL; |
65 | static int one = 1; | 61 | static int one = 1; |
66 | 62 | ||
@@ -282,8 +278,14 @@ userauth_finish(Authctxt *authctxt, int authenticated, char *method) | |||
282 | /* now we can break out */ | 278 | /* now we can break out */ |
283 | authctxt->success = 1; | 279 | authctxt->success = 1; |
284 | } else { | 280 | } else { |
285 | if (authctxt->failures++ > AUTH_FAIL_MAX) | 281 | if (authctxt->failures++ > AUTH_FAIL_MAX) { |
282 | #ifdef WITH_AIXAUTHENTICATE | ||
283 | loginfailed(authctxt->user, | ||
284 | get_canonical_hostname(options.reverse_mapping_check), | ||
285 | "ssh"); | ||
286 | #endif /* WITH_AIXAUTHENTICATE */ | ||
286 | packet_disconnect(AUTH_FAIL_MSG, authctxt->user); | 287 | packet_disconnect(AUTH_FAIL_MSG, authctxt->user); |
288 | } | ||
287 | methods = authmethods_get(); | 289 | methods = authmethods_get(); |
288 | packet_start(SSH2_MSG_USERAUTH_FAILURE); | 290 | packet_start(SSH2_MSG_USERAUTH_FAILURE); |
289 | packet_put_cstring(methods); | 291 | packet_put_cstring(methods); |