]> andersk Git - openssh.git/blobdiff - sshd.c
- (dtucker) [auth-pam.c monitor.c session.c sshd.c] Bug #926: Move
[openssh.git] / sshd.c
diff --git a/sshd.c b/sshd.c
index 5ea87f0f91b7ab53d61684909a1936622335bd98..5dfc2b185bf815ce09ac19e27319f21d9ed6845d 100644 (file)
--- a/sshd.c
+++ b/sshd.c
@@ -1847,6 +1847,20 @@ main(int ac, char **av)
        audit_event(SSH_AUTH_SUCCESS);
 #endif
 
+#ifdef GSSAPI
+       if (options.gss_authentication) {
+               temporarily_use_uid(authctxt->pw);
+               ssh_gssapi_storecreds();
+               restore_uid();
+       }
+#endif
+#ifdef USE_PAM
+       if (options.use_pam) {
+               do_pam_setcred(1);
+               do_pam_session();
+       }
+#endif
+
        /*
         * In privilege separation, we fork another child and prepare
         * file descriptor passing.
This page took 0.032198 seconds and 4 git commands to generate.