Bugzilla – Attachment 2797 Details for
Bug 2549
[PATCH] Allow PAM conversation for pam_setcred for keyboard-interactive authentication
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Allow PAM conversation for pam_setcred
pam_setcred.patch.txt (text/plain), 946 bytes, created by
Tomas Kuthan
on 2016-03-08 00:08:42 AEDT
(
hide
)
Description:
Allow PAM conversation for pam_setcred
Filename:
MIME Type:
Creator:
Tomas Kuthan
Created:
2016-03-08 00:08:42 AEDT
Size:
946 bytes
patch
obsolete
>From 2e2a94690126592293c94a8fb5aafea23a946cad Mon Sep 17 00:00:00 2001 >From: Tomas Kuthan <tkuthan@gmail.com> >Date: Mon, 7 Mar 2016 13:02:27 +0100 >Subject: [PATCH] Allow PAM conversation for pam_setcred > >--- > auth-pam.c | 5 +++++ > 1 file changed, 5 insertions(+) > >diff --git a/auth-pam.c b/auth-pam.c >index 8425af1..5f3c473 100644 >--- a/auth-pam.c >+++ b/auth-pam.c >@@ -483,6 +483,9 @@ sshpam_thread(void *ctxtp) > goto auth_fail; > sshpam_password_change_required(0); > } >+ sshpam_err = pam_setcred(sshpam_handle, PAM_ESTABLISH_CRED); >+ if (sshpam_err != PAM_SUCCESS) >+ goto auth_fail; > } > > buffer_put_cstring(&buffer, "OK"); >@@ -935,6 +938,8 @@ do_pam_set_tty(const char *tty) > void > do_pam_setcred(int init) > { >+ if (compat20 && (sshpam_authenticated == 1)) >+ return; /* pam_setcred already done */ > sshpam_err = pam_set_item(sshpam_handle, PAM_CONV, > (const void *)&store_conv); > if (sshpam_err != PAM_SUCCESS) >-- >2.6.1 >
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 2549
: 2797