diff options
author | Darren Tucker <dtucker@zip.com.au> | 2005-04-21 11:50:55 +0200 |
---|---|---|
committer | Darren Tucker <dtucker@zip.com.au> | 2005-04-21 11:50:55 +0200 |
commit | 48554152b9f063f0f226f3eeb9f199be69975c2f (patch) | |
tree | 4eca6268e5e3a0dde1af2e2bc6106cc619bcefcf /session.c | |
parent | - (dtucker) [INSTALL] Fix s/key text too. (diff) | |
download | openssh-48554152b9f063f0f226f3eeb9f199be69975c2f.tar.xz openssh-48554152b9f063f0f226f3eeb9f199be69975c2f.zip |
- (dtucker) [session.c] Bug #1024: Don't check pam_session_is_open if
UseLogin is set as PAM is not used to establish credentials in that
case. Found by Michael Selvesteen, ok djm@
Diffstat (limited to 'session.c')
-rw-r--r-- | session.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1477,7 +1477,8 @@ do_child(Session *s, const char *command) } #ifdef USE_PAM - if (options.use_pam && !is_pam_session_open()) { + if (options.use_pam && !options.use_login && !is_pam_session_open()) { + debug3("PAM session not opened, exiting"); display_loginmsg(); exit(254); } |