Bugzilla – Attachment 713 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]
Fix tabbage.
openssh-gssapi-pam.patch (text/plain), 1.22 KB, created by
Darren Tucker
on 2004-09-11 20:16:34 AEST
(
hide
)
Description:
Fix tabbage.
Filename:
MIME Type:
Creator:
Darren Tucker
Created:
2004-09-11 20:16:34 AEST
Size:
1.22 KB
patch
obsolete
>Index: session.c >=================================================================== >RCS file: /usr/local/src/security/openssh/cvs/openssh_cvs/session.c,v >retrieving revision 1.288 >diff -u -p -r1.288 session.c >--- session.c 30 Aug 2004 10:42:08 -0000 1.288 >+++ session.c 11 Sep 2004 10:19:00 -0000 >@@ -661,14 +661,6 @@ do_exec(Session *s, const char *command) > 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 >@@ -1253,6 +1245,13 @@ do_setusercontext(struct passwd *pw) > # 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(); >@@ -1283,6 +1282,13 @@ do_setusercontext(struct passwd *pw) > 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
Flags:
dtucker
:
ok+
Actions:
View
|
Diff
Attachments on
bug 918
:
701
| 713