Bug 1024 - SSHD fails to connect when "UsePAM and UseLogin" is yes
Summary: SSHD fails to connect when "UsePAM and UseLogin" is yes
Status: CLOSED FIXED
Alias: None
Product: Portable OpenSSH
Classification: Unclassified
Component: PAM support (show other bugs)
Version: 4.0p1
Hardware: All All
: P2 normal
Assignee: OpenSSH Bugzilla mailing list
URL:
Keywords:
Depends on:
Blocks: 994
  Show dependency treegraph
 
Reported: 2005-04-21 15:53 AEST by Michael selvesteen
Modified: 2006-10-07 11:39 AEST (History)
0 users

See Also:


Attachments
Don't check pam_session_is_open if UseLogin=yes (549 bytes, patch)
2005-04-21 16:55 AEST, Darren Tucker
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.