Bugzilla – Attachment 1218 Details for
Bug 1269
PAM Callback returns garbage if user unknown or root with disabled login in ssh-config
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Simplest fix, if the user is unknown the input gets still delivered and not changed
opensshpatch.diff (text/plain), 907 bytes, created by
Markus Mueller
on 2006-12-06 03:11:29 AEDT
(
hide
)
Description:
Simplest fix, if the user is unknown the input gets still delivered and not changed
Filename:
MIME Type:
Creator:
Markus Mueller
Created:
2006-12-06 03:11:29 AEDT
Size:
907 bytes
patch
obsolete
>diff -U 10 auth-pam.c auth-pam.c.new >--- auth-pam.c 2006-12-04 16:51:50.000000000 +0100 >+++ auth-pam.c.new 2006-12-05 12:04:52.000000000 +0100 >@@ -823,21 +823,21 @@ > case 0: > break; > default: > return (-1); > } > if (num != 1) { > error("PAM: expected one response, got %u", num); > return (-1); > } > buffer_init(&buffer); >- if (sshpam_authctxt->valid && >+ if ((!sshpam_authctxt->valid) || > (sshpam_authctxt->pw->pw_uid != 0 || > options.permit_root_login == PERMIT_YES)) > buffer_put_cstring(&buffer, *resp); > else > buffer_put_cstring(&buffer, badpw); > if (ssh_msg_send(ctxt->pam_psock, PAM_AUTHTOK, &buffer) == -1) { > buffer_free(&buffer); > return (-1); > } > buffer_free(&buffer); >
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 1269
:
1217
| 1218 |
1219