summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2000-10-28 13:38:34 +1100
committerDamien Miller <djm@mindrot.org>2000-10-28 13:38:34 +1100
commitc05e01875bab590584f51bbeb464dd23c64f27fa (patch)
treeeeb5572cd0bd3a2620170451998efb038419369f
parent6bd90df4909b90143093536254fce86342f63eaa (diff)
- (djm) Fix mangled AIXAUTHENTICATE code
-rw-r--r--ChangeLog1
-rw-r--r--auth2.c6
2 files changed, 4 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 79f9c7bf0..914891bea 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,7 @@
120001028 120001028
2 - (djm) fix select hack in serverloop.c from Philippe WILLEM 2 - (djm) fix select hack in serverloop.c from Philippe WILLEM
3 <Philippe.WILLEM@urssaf.fr> 3 <Philippe.WILLEM@urssaf.fr>
4 - (djm) Fix mangled AIXAUTHENTICATE code
4 5
520001027 620001027
6 - (djm) Increase REKEY_BYTES to 2^24 for arc4random 7 - (djm) Increase REKEY_BYTES to 2^24 for arc4random
diff --git a/auth2.c b/auth2.c
index 60f8f98e6..d3c05a7ae 100644
--- a/auth2.c
+++ b/auth2.c
@@ -193,7 +193,7 @@ input_userauth_request(int type, int plen, void *ctxt)
193 fatal("input_userauth_request: no authctxt"); 193 fatal("input_userauth_request: no authctxt");
194 if (authctxt->attempt++ >= AUTH_FAIL_MAX) { 194 if (authctxt->attempt++ >= AUTH_FAIL_MAX) {
195#ifdef WITH_AIXAUTHENTICATE 195#ifdef WITH_AIXAUTHENTICATE
196 loginfailed(user,get_canonical_hostname(),"ssh"); 196 loginfailed(authctxt->pw->pw_name, get_canonical_hostname(), "ssh");
197#endif /* WITH_AIXAUTHENTICATE */ 197#endif /* WITH_AIXAUTHENTICATE */
198 packet_disconnect("too many failed userauth_requests"); 198 packet_disconnect("too many failed userauth_requests");
199 } 199 }
@@ -306,8 +306,8 @@ userauth_reply(Authctxt *authctxt, int authenticated)
306 if (authenticated == 1) { 306 if (authenticated == 1) {
307#ifdef WITH_AIXAUTHENTICATE 307#ifdef WITH_AIXAUTHENTICATE
308 /* We don't have a pty yet, so just label the line as "ssh" */ 308 /* We don't have a pty yet, so just label the line as "ssh" */
309 if (loginsuccess(user, get_canonical_hostname(), "ssh", 309 if (loginsuccess(authctxt->pw->pw_name, get_canonical_hostname(),
310 &aixloginmsg) < 0) 310 "ssh", &aixloginmsg) < 0)
311 aixloginmsg = NULL; 311 aixloginmsg = NULL;
312#endif /* WITH_AIXAUTHENTICATE */ 312#endif /* WITH_AIXAUTHENTICATE */
313 /* turn off userauth */ 313 /* turn off userauth */