Bugzilla – Attachment 2999 Details for
Bug 2408
Expose authentication information to PAM
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
expose to PAM
bz2408.diff (text/plain), 864 bytes, created by
Damien Miller
on 2017-06-24 23:24:15 AEST
(
hide
)
Description:
expose to PAM
Filename:
MIME Type:
Creator:
Damien Miller
Created:
2017-06-24 23:24:15 AEST
Size:
864 bytes
patch
obsolete
>diff --git a/auth-pam.c b/auth-pam.c >index 9574d9ac..908d81b7 100644 >--- a/auth-pam.c >+++ b/auth-pam.c >@@ -1056,7 +1056,24 @@ do_pam_chauthtok(void) > void > do_pam_session(void) > { >+ char *auth_info; >+ > debug3("PAM: opening session"); >+ >+ /* >+ * Expose authentication information to PAM. >+ * The enviornment variable is versioned. Please increment the >+ * version suffix if the format of session_info changes. >+ */ >+ if (sshpam_authctxt->session_info != NULL) { >+ if ((auth_info = sshbuf_dup_string( >+ sshpam_authctxt->session_info)) == NULL) >+ fatal("%s: sshbuf_dup_string failed", __func__); >+ debug2("%s: auth information in SSH_AUTH_INFO_0", __func__); >+ do_pam_putenv("SSH_AUTH_INFO_0", auth_info); >+ free(auth_info); >+ } >+ > sshpam_err = pam_set_item(sshpam_handle, PAM_CONV, > (const void *)&store_conv); > if (sshpam_err != PAM_SUCCESS)
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 2408
:
2754
|
2791
|
2792
|
2812
|
2846
|
2978
|
2980
|
2999
|
3022
|
3089
|
3091