Bugzilla – Attachment 1157 Details for
Bug 1207
sshd does not clear unsuccessful login count on non-interactive logins
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Always call loginsuccess immediately after authentication.
openssh-4.3p1-aix-badloginclear.patch (text/plain), 1.31 KB, created by
Darren Tucker
on 2006-07-08 09:28:38 AEST
(
hide
)
Description:
Always call loginsuccess immediately after authentication.
Filename:
MIME Type:
Creator:
Darren Tucker
Created:
2006-07-08 09:28:38 AEST
Size:
1.31 KB
patch
obsolete
>Index: auth.c >=================================================================== >RCS file: /usr/local/src/security/openssh/cvs/openssh_cvs/auth.c,v >retrieving revision 1.110 >diff -u -r1.110 auth.c >--- auth.c 21 May 2006 08:26:40 -0000 1.110 >+++ auth.c 7 Jul 2006 23:17:48 -0000 >@@ -269,6 +269,11 @@ > strcmp(method, "challenge-response") == 0)) > record_failed_login(authctxt->user, > get_canonical_hostname(options.use_dns), "ssh"); >+# ifdef _AIX >+ if (authenticated) >+ sys_auth_record_login(authctxt->user, >+ get_canonical_hostname(options.use_dns), "ssh", NULL); >+# endif > #endif > #ifdef SSH_AUDIT_EVENTS > if (authenticated == 0 && !authctxt->postponed) >Index: openbsd-compat/port-aix.c >=================================================================== >RCS file: /usr/local/src/security/openssh/cvs/openssh_cvs/openbsd-compat/port-aix.c,v >retrieving revision 1.33 >diff -u -r1.33 port-aix.c >--- openbsd-compat/port-aix.c 29 May 2005 00:54:28 -0000 1.33 >+++ openbsd-compat/port-aix.c 7 Jul 2006 23:20:49 -0000 >@@ -261,7 +261,7 @@ > aix_setauthdb(user); > if (loginsuccess((char *)user, (char *)host, (char *)ttynm, &msg) == 0) { > success = 1; >- if (msg != NULL) { >+ if (msg != NULL && loginmsg != NULL) { > debug("AIX/loginsuccess: msg %s", msg); > buffer_append(loginmsg, msg, strlen(msg)); > xfree(msg);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 1207
:
1153
|
1157
|
1158