diff options
author | Damien Miller <djm@mindrot.org> | 2000-10-28 13:38:34 +1100 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2000-10-28 13:38:34 +1100 |
commit | c05e01875bab590584f51bbeb464dd23c64f27fa (patch) | |
tree | eeb5572cd0bd3a2620170451998efb038419369f /auth2.c | |
parent | 6bd90df4909b90143093536254fce86342f63eaa (diff) | |
download | openssh-git-c05e01875bab590584f51bbeb464dd23c64f27fa.tar.gz |
- (djm) Fix mangled AIXAUTHENTICATE code
Diffstat (limited to 'auth2.c')
-rw-r--r-- | auth2.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -193,7 +193,7 @@ input_userauth_request(int type, int plen, void *ctxt) fatal("input_userauth_request: no authctxt"); if (authctxt->attempt++ >= AUTH_FAIL_MAX) { #ifdef WITH_AIXAUTHENTICATE - loginfailed(user,get_canonical_hostname(),"ssh"); + loginfailed(authctxt->pw->pw_name, get_canonical_hostname(), "ssh"); #endif /* WITH_AIXAUTHENTICATE */ packet_disconnect("too many failed userauth_requests"); } @@ -306,8 +306,8 @@ userauth_reply(Authctxt *authctxt, int authenticated) if (authenticated == 1) { #ifdef WITH_AIXAUTHENTICATE /* We don't have a pty yet, so just label the line as "ssh" */ - if (loginsuccess(user, get_canonical_hostname(), "ssh", - &aixloginmsg) < 0) + if (loginsuccess(authctxt->pw->pw_name, get_canonical_hostname(), + "ssh", &aixloginmsg) < 0) aixloginmsg = NULL; #endif /* WITH_AIXAUTHENTICATE */ /* turn off userauth */ |