summaryrefslogtreecommitdiffstats
path: root/session.c
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@zip.com.au>2005-04-21 11:50:55 +0200
committerDarren Tucker <dtucker@zip.com.au>2005-04-21 11:50:55 +0200
commit48554152b9f063f0f226f3eeb9f199be69975c2f (patch)
tree4eca6268e5e3a0dde1af2e2bc6106cc619bcefcf /session.c
parent - (dtucker) [INSTALL] Fix s/key text too. (diff)
downloadopenssh-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.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/session.c b/session.c
index b32c9e2ca..8ac476c69 100644
--- a/session.c
+++ b/session.c
@@ -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);
}