Bug 1024

Summary: SSHD fails to connect when "UsePAM and UseLogin" is yes
Product: Portable OpenSSH Reporter: Michael selvesteen <selvesteen>
Component: PAM supportAssignee: OpenSSH Bugzilla mailing list <openssh-bugs>
Status: CLOSED FIXED    
Severity: normal    
Priority: P2    
Version: 4.0p1   
Hardware: All   
OS: All   
Bug Depends on:    
Bug Blocks: 994    
Attachments:
Description Flags
Don't check pam_session_is_open if UseLogin=yes none

Description Michael selvesteen 2005-04-21 15:53:47 AEST
OpenSSH 4.0 fails to establish the connection with the client when UsePAM and 
UseLogin is set to Yes in sshd_config. But it works when usepam is 'no'.
Comment 1 Darren Tucker 2005-04-21 16:55:53 AEST
Created attachment 890 [details]
Don't check pam_session_is_open if UseLogin=yes

When UseLogin=yes and UsePAM=yes, do_setusercontext (and thus do_pam_session)
don't get called.

This causes the session to close immediately because the PAM session isn't
open.  The attached patch fixes this.
Comment 2 Darren Tucker 2005-04-21 19:59:17 AEST
Michael reports that the patch solved the issue, so patch applied.  Thanks for
the report.
Comment 3 Darren Tucker 2006-10-07 11:39:52 AEST
Change all RESOLVED bug to CLOSED with the exception of the ones fixed post-4.4.