Bugzilla – Attachment 701 Details for
Bug 918
ssh_gssapi_storecreds called to late to be usable by PAM in sesion.c
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
move call to ssh_gssapi_storecreds in session.c before call to PAM
cdiffpu.20040823 (text/plain), 902 bytes, created by
Doug Engert
on 2004-08-24 00:39:48 AEST
(
hide
)
Description:
move call to ssh_gssapi_storecreds in session.c before call to PAM
Filename:
MIME Type:
Creator:
Doug Engert
Created:
2004-08-24 00:39:48 AEST
Size:
902 bytes
patch
obsolete
>--- ,session.c Mon Aug 23 09:26:23 2004 >+++ session.c Mon Aug 23 09:26:23 2004 >@@ -661,14 +661,6 @@ > debug("Forced command '%.900s'", command); > } > >-#ifdef GSSAPI >- if (options.gss_authentication) { >- temporarily_use_uid(s->pw); >- ssh_gssapi_storecreds(); >- restore_uid(); >- } >-#endif >- > if (s->ttyfd != -1) > do_exec_pty(s, command); > else >@@ -1247,6 +1239,13 @@ > # ifdef __bsdi__ > setpgid(0, 0); > # endif >+#ifdef GSSAPI >+ if (options.gss_authentication) { >+ temporarily_use_uid(pw); >+ ssh_gssapi_storecreds(); >+ restore_uid(); >+ } >+#endif > # ifdef USE_PAM > if (options.use_pam) { > do_pam_session(); >@@ -1277,6 +1276,13 @@ > exit(1); > } > endgrent(); >+#ifdef GSSAPI >+ if (options.gss_authentication) { >+ temporarily_use_uid(pw); >+ ssh_gssapi_storecreds(); >+ restore_uid(); >+ } >+#endif > # ifdef USE_PAM > /* > * PAM credentials may take the form of supplementary groups.
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 918
:
701
|
713