|
Lines 661-674
do_exec(Session *s, const char *command)
Link Here
|
| 661 |
debug("Forced command '%.900s'", command); |
661 |
debug("Forced command '%.900s'", command); |
| 662 |
} |
662 |
} |
| 663 |
|
663 |
|
| 664 |
#ifdef GSSAPI |
|
|
| 665 |
if (options.gss_authentication) { |
| 666 |
temporarily_use_uid(s->pw); |
| 667 |
ssh_gssapi_storecreds(); |
| 668 |
restore_uid(); |
| 669 |
} |
| 670 |
#endif |
| 671 |
|
| 672 |
if (s->ttyfd != -1) |
664 |
if (s->ttyfd != -1) |
| 673 |
do_exec_pty(s, command); |
665 |
do_exec_pty(s, command); |
| 674 |
else |
666 |
else |
|
Lines 1253-1258
do_setusercontext(struct passwd *pw)
Link Here
|
| 1253 |
# ifdef __bsdi__ |
1245 |
# ifdef __bsdi__ |
| 1254 |
setpgid(0, 0); |
1246 |
setpgid(0, 0); |
| 1255 |
# endif |
1247 |
# endif |
|
|
1248 |
#ifdef GSSAPI |
| 1249 |
if (options.gss_authentication) { |
| 1250 |
temporarily_use_uid(pw); |
| 1251 |
ssh_gssapi_storecreds(); |
| 1252 |
restore_uid(); |
| 1253 |
} |
| 1254 |
#endif |
| 1256 |
# ifdef USE_PAM |
1255 |
# ifdef USE_PAM |
| 1257 |
if (options.use_pam) { |
1256 |
if (options.use_pam) { |
| 1258 |
do_pam_session(); |
1257 |
do_pam_session(); |
|
Lines 1283-1288
do_setusercontext(struct passwd *pw)
Link Here
|
| 1283 |
exit(1); |
1282 |
exit(1); |
| 1284 |
} |
1283 |
} |
| 1285 |
endgrent(); |
1284 |
endgrent(); |
|
|
1285 |
#ifdef GSSAPI |
| 1286 |
if (options.gss_authentication) { |
| 1287 |
temporarily_use_uid(pw); |
| 1288 |
ssh_gssapi_storecreds(); |
| 1289 |
restore_uid(); |
| 1290 |
} |
| 1291 |
#endif |
| 1286 |
# ifdef USE_PAM |
1292 |
# ifdef USE_PAM |
| 1287 |
/* |
1293 |
/* |
| 1288 |
* PAM credentials may take the form of supplementary groups. |
1294 |
* PAM credentials may take the form of supplementary groups. |