summaryrefslogtreecommitdiff
path: root/sshd.c
diff options
context:
space:
mode:
Diffstat (limited to 'sshd.c')
-rw-r--r--sshd.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/sshd.c b/sshd.c
index 5ea87f0f9..5dfc2b185 100644
--- a/sshd.c
+++ b/sshd.c
@@ -1847,6 +1847,20 @@ main(int ac, char **av)
1847 audit_event(SSH_AUTH_SUCCESS); 1847 audit_event(SSH_AUTH_SUCCESS);
1848#endif 1848#endif
1849 1849
1850#ifdef GSSAPI
1851 if (options.gss_authentication) {
1852 temporarily_use_uid(authctxt->pw);
1853 ssh_gssapi_storecreds();
1854 restore_uid();
1855 }
1856#endif
1857#ifdef USE_PAM
1858 if (options.use_pam) {
1859 do_pam_setcred(1);
1860 do_pam_session();
1861 }
1862#endif
1863
1850 /* 1864 /*
1851 * In privilege separation, we fork another child and prepare 1865 * In privilege separation, we fork another child and prepare
1852 * file descriptor passing. 1866 * file descriptor passing.