Bugzilla – Attachment 972 Details for
Bug 1087
SSH fails to show PAM password expiry message from LDAP on login
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Only send loginmsg for display if PAM account check fails
openssh-1087.patch (text/plain), 749 bytes, created by
Darren Tucker
on 2005-09-29 23:18:53 AEST
(
hide
)
Description:
Only send loginmsg for display if PAM account check fails
Filename:
MIME Type:
Creator:
Darren Tucker
Created:
2005-09-29 23:18:53 AEST
Size:
749 bytes
patch
obsolete
>Index: monitor.c >=================================================================== >RCS file: /usr/local/src/security/openssh/cvs/openssh_cvs/monitor.c,v >retrieving revision 1.86 >diff -u -p -r1.86 monitor.c >--- monitor.c 17 Jul 2005 07:53:31 -0000 1.86 >+++ monitor.c 29 Sep 2005 13:13:47 -0000 >@@ -834,9 +834,13 @@ mm_answer_pam_account(int sock, Buffer * > ret = do_pam_account(); > > buffer_put_int(m, ret); >- buffer_append(&loginmsg, "\0", 1); >- buffer_put_cstring(m, buffer_ptr(&loginmsg)); >- buffer_clear(&loginmsg); >+ if (ret == 0) { >+ buffer_put_string(m, buffer_ptr(&loginmsg), >+ buffer_len(&loginmsg)); >+ buffer_clear(&loginmsg); >+ } else { >+ buffer_put_cstring(m, ""); >+ } > > mm_request_send(sock, MONITOR_ANS_PAM_ACCOUNT, m); >
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 1087
:
960
|
961
|
962
|
969
| 972