summaryrefslogtreecommitdiffstats
path: root/session.c
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@zip.com.au>2004-09-11 14:17:26 +0200
committerDarren Tucker <dtucker@zip.com.au>2004-09-11 14:17:26 +0200
commit69687f4b65373e09269db8c18f18b4ac7225a382 (patch)
treebdc1ab58486951379f020d2e4a147c5a41997b01 /session.c
parent - (djm) [ssh-agent.c] unifdef some cygwin code; ok dtucker@ (diff)
downloadopenssh-69687f4b65373e09269db8c18f18b4ac7225a382.tar.xz
openssh-69687f4b65373e09269db8c18f18b4ac7225a382.zip
- (dtucker) [auth-pam.c auth-pam.h session.c] Bug #890: Send output from
failing PAM session modules to user then exit, similar to the way /etc/nologin is handled. ok djm@
Diffstat (limited to 'session.c')
-rw-r--r--session.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/session.c b/session.c
index 89e1ec892..7a70b82e6 100644
--- a/session.c
+++ b/session.c
@@ -1439,6 +1439,13 @@ do_child(Session *s, const char *command)
#endif /* HAVE_OSF_SIA */
}
+#ifdef USE_PAM
+ if (options.use_pam && !is_pam_session_open()) {
+ display_loginmsg();
+ exit(254);
+ }
+#endif
+
/*
* Get the shell from the password data. An empty shell field is
* legal, and means /bin/sh.