From e49d0966b5e8e4ff4eb993f1b8511932dfcf7bf8 Mon Sep 17 00:00:00 2001 From: Damien Miller Date: Tue, 13 Nov 2001 23:46:18 +1100 Subject: - (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 , K.Wolkersdorfer@fz-juelich.de and others --- session.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'session.c') diff --git a/session.c b/session.c index 10cefdb44..d0f9072f3 100644 --- a/session.c +++ b/session.c @@ -159,7 +159,6 @@ const char *original_command = NULL; Session sessions[MAX_SESSIONS]; #ifdef WITH_AIXAUTHENTICATE -/* AIX's lastlogin message, set in auth1.c */ char *aixloginmsg; #endif /* WITH_AIXAUTHENTICATE */ @@ -191,6 +190,14 @@ do_authenticated(Authctxt *authctxt) } #endif #endif +#ifdef WITH_AIXAUTHENTICATE + /* We don't have a pty yet, so just label the line as "ssh" */ + if (loginsuccess(authctxt->user, + get_canonical_hostname(options.reverse_mapping_check), + "ssh", &aixloginmsg) < 0) + aixloginmsg = NULL; +#endif /* WITH_AIXAUTHENTICATE */ + /* setup the channel layer */ if (!no_port_forwarding_flag && options.allow_tcp_forwarding) channel_permit_all_opens(); -- cgit v1.2.3