- (djm) Fix mangled AIXAUTHENTICATE code
This commit is contained in:
parent
6bd90df490
commit
c05e01875b
|
@ -1,6 +1,7 @@
|
||||||
20001028
|
20001028
|
||||||
- (djm) fix select hack in serverloop.c from Philippe WILLEM
|
- (djm) fix select hack in serverloop.c from Philippe WILLEM
|
||||||
<Philippe.WILLEM@urssaf.fr>
|
<Philippe.WILLEM@urssaf.fr>
|
||||||
|
- (djm) Fix mangled AIXAUTHENTICATE code
|
||||||
|
|
||||||
20001027
|
20001027
|
||||||
- (djm) Increase REKEY_BYTES to 2^24 for arc4random
|
- (djm) Increase REKEY_BYTES to 2^24 for arc4random
|
||||||
|
|
6
auth2.c
6
auth2.c
|
@ -193,7 +193,7 @@ input_userauth_request(int type, int plen, void *ctxt)
|
||||||
fatal("input_userauth_request: no authctxt");
|
fatal("input_userauth_request: no authctxt");
|
||||||
if (authctxt->attempt++ >= AUTH_FAIL_MAX) {
|
if (authctxt->attempt++ >= AUTH_FAIL_MAX) {
|
||||||
#ifdef WITH_AIXAUTHENTICATE
|
#ifdef WITH_AIXAUTHENTICATE
|
||||||
loginfailed(user,get_canonical_hostname(),"ssh");
|
loginfailed(authctxt->pw->pw_name, get_canonical_hostname(), "ssh");
|
||||||
#endif /* WITH_AIXAUTHENTICATE */
|
#endif /* WITH_AIXAUTHENTICATE */
|
||||||
packet_disconnect("too many failed userauth_requests");
|
packet_disconnect("too many failed userauth_requests");
|
||||||
}
|
}
|
||||||
|
@ -306,8 +306,8 @@ userauth_reply(Authctxt *authctxt, int authenticated)
|
||||||
if (authenticated == 1) {
|
if (authenticated == 1) {
|
||||||
#ifdef WITH_AIXAUTHENTICATE
|
#ifdef WITH_AIXAUTHENTICATE
|
||||||
/* We don't have a pty yet, so just label the line as "ssh" */
|
/* We don't have a pty yet, so just label the line as "ssh" */
|
||||||
if (loginsuccess(user, get_canonical_hostname(), "ssh",
|
if (loginsuccess(authctxt->pw->pw_name, get_canonical_hostname(),
|
||||||
&aixloginmsg) < 0)
|
"ssh", &aixloginmsg) < 0)
|
||||||
aixloginmsg = NULL;
|
aixloginmsg = NULL;
|
||||||
#endif /* WITH_AIXAUTHENTICATE */
|
#endif /* WITH_AIXAUTHENTICATE */
|
||||||
/* turn off userauth */
|
/* turn off userauth */
|
||||||
|
|
Loading…
Reference in New Issue