Re: Password-Authentification with openssh-3.1p1 fails

From: Chip (chip@cseraphine.com)
Date: 03/14/02


From: chip@cseraphine.com (Chip)
Date: 13 Mar 2002 16:09:08 -0800

No real insight to offer, other than to say I am getting the same
issue on a RedHat 7.1 box being upgraded from 2.9p2 via the "official"
3.1 RPMs.

All user accounts are bounced with keys, and PAM seems convinced that
the passwords are always wrong (although, strangely, for root it says
that the account is expired). FTP and telnet are fine.

I backed out the 3.1 install to 2.9.2 and still got the same behavior
(!), which suggests it is in some odd configuration issue in the
interface between sshd and pine.

Anybody know what gives here?

fam.muck@telda.net (Andreas Muck) wrote in message news:<b408a2b3.0203120108.b3e674@posting.google.com>...
> Hallo Steven,
>
> steven@cwjamaica.com (Steven Conway) wrote:
>
> > Had that prob too on RH6.2 .. configure with --with-pam option and
> > create a sshd file in /etc/pam.d/ (Red Hat that is) Read the INSTALL
> > File it really explains what you need to do ...
>
> well, I thought I give as much debugging information as possible. But
> it seems that some fancy details are overseen in the huge amount of
> information:
>
> > Andreas Muck <fam.muck@telda.net> wrote:
> > > I compiled openssh-3.1p1 as follows (included in the src.rpm):
> > >
> > > ./configure \
> > > --mandir=%{_mandir} \
> > > --prefix=%{prefix} \
> > > --infodir=%{_infodir} \
> > > --sysconfdir=/etc/ssh \
> > > --libexecdir=%{prefix}/lib/ssh \
> > > --with-tcp-wrappers \
> > > --with-pam
> > > make
>
> and, of course:
>
> > > Here is my /etc/pam.d/sshd:
> > >
> > > #%PAM-1.0
> > > auth required /lib/security/pam_unix.so debug # \
> > > set_secrpc
> > > auth required /lib/security/pam_nologin.so
> > > auth required /lib/security/pam_env.so
> > > account required /lib/security/pam_unix.so
> > > password required /lib/security/pam_pwcheck.so md5 \
> > > use_cracklib
> > > password required /lib/security/pam_unix.so md5 \
> > > use_first_pass use_authtok
> > > session required /lib/security/pam_unix.so none # \
> > > trace or debug
> > > session required /lib/security/pam_limits.so
> > >
> > > This /etc/pam.d/sshd works fine with openssh-2.9.9p2 (SuSE-package).
>
> You can see that sshd is calling PAM:
>
> > > Here is server-output in debug-mode:
> [lots of output snipped]
> > > debug1: userauth-request for user andreas service ssh-connection
> > > method password
> > > debug1: attempt 4 failures 4
> > > debug1: PAM Password authentication for "andreas" failed[7]:
> > > Authentication failure
> > > Failed password for andreas from 127.0.0.1 port 1053 ssh2
>
> But PAM recognizes a wrong password:
>
> > > That is the part of /var/log/messages generated by PAM:
> > >
> > > Mar 9 20:14:55 home PAM-unix2[1045]: pam_sm_authenticate() called
> > > Mar 9 20:14:55 home PAM-unix2[1045]: username=[andreas]
> > > Mar 9 20:14:55 home PAM-unix2[1045]: wrong password, return \
> > > PAM_AUTH_ERR
>
> But you can be sure that I use the correct password! Something strange
> happens here.
>
> Meanwhile I wrote a bug report to the openssh-maintainers but up till
> now I've got no answer.
>
> Thanks & much greetings!
>
> Ciao
> Andreas



Relevant Pages

  • lauras draper pulls to our teacher after we open alongside it
    ... Better order carpenters now or Pam will ... Pam, still irritating, kills almost wastefully, as the butcher ... One more strange dry hen cleans goldsmiths on Cristof's ... We can't attack printers unless Valerie will ...
    (rec.pets.cats.anecdotes)
  • Re: Software for distribution of configuration files and changes
    ... accepting keyboard-interactive/pam. ... This affects all users, and not just root. ... But without PAM, sshd just prompts for password in a little different way. ...
    (freebsd-stable)
  • RE: PAM and SSH
    ... It appears that for sshd, sshusers would have to be their primary group ... The nsswitch.conf list files and winbind for groups but the ssh documentation said that only primary groups were used. ... Perhaps a simple PAM module that takes a network description and succeeds if the user's IP is on that network would not be a huge task. ...
    (SSH)
  • Re: OpenSSH and pam_krb5
    ... > with GSSAPI and PAM authentication. ... this data is present in a separate process (the "authentication ... application (ie sshd). ...
    (SSH)
  • Re: Confusion on SSH and PAM
    ... Looks like I've understood the interaction between SSH and PAM wrong here, ... sshd that a root login vai PAM is not ok, ... key fails, the sshd just goes to the next step, which is the password. ...
    (freebsd-questions)

Quantcast