[PATCH] Run PAM sessions for all logins, not just ptys

Andrew Bartlett abartlet at pcug.org.au
Tue Jun 12 15:29:44 EST 2001

This patch restores the behaviour of previous releases of OpenSSH and
does a PAM session check for every login/logout, not just logins
requesting a PTY.  Mildly tested under RedHat 6.2.

Andrew Bartlett
Andrew Bartlett
abartlet at pcug.org.au
-------------- next part --------------
diff -ur openssh-2.9p1old/session.c openssh-2.9p1/session.c
--- openssh-2.9p1old/session.c	Thu Apr 19 01:29:34 2001
+++ openssh-2.9p1/session.c	Sun May  6 22:27:53 2001
@@ -496,6 +496,7 @@
 #if defined(USE_PAM)
+	do_pam_session(s->pw->pw_name, NULL);
 #endif /* USE_PAM */
Only in openssh-2.9p1: session.c.old
Only in openssh-2.9p1: session.c~

More information about the openssh-unix-dev mailing list