diff options
author | Darren Tucker <dtucker@zip.com.au> | 2004-09-11 14:17:26 +0200 |
---|---|---|
committer | Darren Tucker <dtucker@zip.com.au> | 2004-09-11 14:17:26 +0200 |
commit | 69687f4b65373e09269db8c18f18b4ac7225a382 (patch) | |
tree | bdc1ab58486951379f020d2e4a147c5a41997b01 /session.c | |
parent | - (djm) [ssh-agent.c] unifdef some cygwin code; ok dtucker@ (diff) | |
download | openssh-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.c | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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. |