Re: problem with ssh and pam

From: Darren Tucker (dtucker_at_zip.com.au)
Date: 09/19/05

  • Next message: Nathan Jackson-Eeles: "Re: audit perspective: proof that all connections are encrypted"
    Date: Mon, 19 Sep 2005 12:49:37 +1000
    To: Jim Judd <jimj@netrake.com>
    
    

    Jim Judd wrote:
    > Hello, I have configured openssh on a machine running Gentoo to use
    > PAM.
    > Everything seems to be working ok, except for the number of challenge
    > response that are received when a user tries to log on. They get one
    > attempt and the connection is terminated instead of the 3 attempts if
    > usePAM=no. I have tried a few things in the PAM, ssh, and system-auth
    > files but no luck. Does anyone know if it is even possible to set the
    > number of password challenges while using PAM with ssh?

    You should get more than one auth attempt.

    It actually sonds a bit like this glibc bug which sshd can tickle:
    http://marc.theaimsgroup.com/?l=openssh-unix-dev&m=111046966722997&w=2

    Quick test: does creating a "lib" directory in sshd's privsep chroot dir
      make it work as you expect?

    > Here is what I have so far;
    >
    > kernel 2.6.8 sshd OpenSSH_3.8.1p1, OpenSSL 0.9.7d 17 Mar 2004 Not
    > sure how to tell what version of pam is on the box, 0.77 I guess
    > since there is a libpam.so.0.77 on the box.
    > distro is Gentoo

    Which glibc version? Does it occur with the newer OpenSSH releases?

    -- 
    Darren Tucker (dtucker at zip.com.au)
    GPG key 8FF4FA69 / D9A3 86E9 7EEE AF4B B2D4  37C9 C982 80C7 8FF4 FA69
         Good judgement comes with experience. Unfortunately, the experience
    usually comes from bad judgement.
    

  • Next message: Nathan Jackson-Eeles: "Re: audit perspective: proof that all connections are encrypted"

    Relevant Pages

    • Re: Difference between "PasswordAuthentication yes" and "AllowedAuthentication passwo
      ... > Thats why I assumed the clear text passwd. ... Debian's sshd is built with PAM, so I suspect what you see as logging ... the version of OpenSSH Debian uses doesn't use PAM ... Good judgement comes with experience. ...
      (comp.security.ssh)
    • Re: Forcing new password at login (w/o requiring an old password) (sudo related)
      ... If you're using PAM then the user will be forced to set a new password ... when the existing one expires regardless of the authentication method. ... the user can sudo w/o additional authentication even ... Good judgement comes with experience. ...
      (comp.security.ssh)
    • Re: Problem with Openssh 3.6.1p2
      ... > I am having a problem with openssh 3.6.1p2 where it seems to access the PAM ... > routines BEFORE it gets a password. ... Good judgement comes with experience. ...
      (SSH)
    • Re: AllowUsers reference a file
      ... If you use PAM with sshd you can get PAM to do it, ... then add "AllowGroups admins" to ... sshd_config and SIGHUP sshd when you want to restrict access. ... Good judgement comes with experience. ...
      (comp.security.ssh)
    • Re: OpenSSH 3.7.1p1 & PAM authentication on Solaris 8
      ... >>and below seem to work fine on solaris 8 with pam. ... When i compile ... >>skip the authentication module, however it seems to read the session ... Good judgement comes with experience. ...
      (comp.security.ssh)