From: c.wegener@itcampus.de
To: gentoo-dev@gentoo.org
Subject: Re: [gentoo-dev] openssh 3.6.1_p2 problem with pam (fwd)
Date: Sat, 3 May 2003 12:56:43 +0200 [thread overview]
Message-ID: <20030503105643.GA1807@pbook.polysynx.foo> (raw)
In-Reply-To: <20030503101613.GA20720@sole.infis.univ.trieste.it>
I confirm this behaviour. And its not new in 3.6.1_p2. I had this
behaviour long before.
On Sat, May 03, 2003 at 12:16:13PM +0200, Andrea Barisani wrote:
>
> Hi folks, I'm having problems with pam and openssh 3.6.1_p2, I've contacted
> openssh-dev and I've received some replies, could someone confirm that I am
> not the only one to exeprience this problem?
>
> I'm including my original post to openssh-dev and the reply with a patch.
>
> What do you think?
>
> Bye
>
> ----------------------------------------------------------------------------------------
>
> Andrea Barisani wrote:
> >
> > ----- Forwarded message from Andrea Barisani <lcars@infis.univ.trieste.it> -----
> >
> > Date: Fri, 2 May 2003 14:01:33 +0200
> > From: Andrea Barisani <lcars@infis.univ.trieste.it>
> > To: openssh@openssh.com
> > Subject: openssh 3.6.1_p2 problem with pam
> >
> > Hi, I've just updated to openssh 3.6.1_p2 and I notice this behaviour:
> >
> > # ssh -l lcars mybox
> > [2 seconds delay]
> > lcars@mybox's password:
> >
> > In the logs I have:
> >
> > May 2 13:57:11 sole sshd(pam_unix)[19663]: authentication failure; logname= uid=0 euid=0 tty=NODEVssh ruser= rhost=homer.infis.univ.trieste.it user=lcars
> > May 2 13:57:13 sole sshd(pam_unix)[19665]: session opened for user lcars by (uid=817)
> >
> > The first line is logged _before_ sshd prompt the password and that's the
> > cause of the delay since I'm not using nodelay option in system-auth.
> >
> > The second one is logged after I enter the correct password.
> >
> > I don't suppose that this is a correct beahviour, what do you think?
> >
> > Thanks a lot.
> >
> > Bye
> >
>
>
> Yes, it's not correct behavior. However, this isn't new to 3.6.1.
> Not sure why you're only seeing it now.
>
> This should help you out:
>
> --- openssh/auth1.c Sun Feb 23 16:59:27 2003
> +++ openssh/auth1.c Thu May 1 22:27:29 2003
> @@ -80,7 +80,7 @@
> authctxt->valid ? "" : "illegal user ", authctxt->user);
>
> /* If the user has no password, accept authentication immediately. */
> - if (options.password_authentication &&
> + if (options.password_authentication && options.permit_empty_passwd &&
> #if defined(KRB4) || defined(KRB5)
> (!options.kerberos_authentication || options.kerberos_or_local_passwd) &&
> #endif
> --- openssh/auth2-none.c Tue Apr 29 02:12:08 2003
> +++ openssh/auth2-none.c Thu May 1 22:27:29 2003
> @@ -100,6 +100,25 @@
> if (check_nt_auth(1, authctxt->pw) == 0)
> return(0);
> #endif
> +
> + /*
> + * REDACTED
> + * REDACTED
> + * REDACTED
> + * REDACTED
> + * REDACTED
> + * REDACTED
> + * REDACTED
> + * REDACTED
> + * REDACTED
> + * REDACTED
> + * REDACTED
> + * REDACTED
> + * REDACTED
> + */
> + if (!options.permit_empty_passwd)
> + return(0);
> +
> return PRIVSEP(auth_password(authctxt, "")) && authctxt->valid;
> }
>
> ----------------------------------------------------------------------------------------
>
> On Sat, May 03, 2003 at 12:24:44AM +0200, Andrea Barisani wrote:
> > I suppose that we'll be seeing this patch in the next version, am I right?
>
> I don't think so. The openssh team has been generally resistant[1] to most
> of my pam suggestions. I have stopped submitting them at this point.
>
> /fc
> [1] Not that I fault them for it. PAM is hard to wedge into openssh
> nicely. Esp. now with privsep.
>
>
>
> --
> gentoo-dev@gentoo.org mailing list
>
--
gentoo-dev@gentoo.org mailing list
next prev parent reply other threads:[~2003-05-03 10:56 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-05-03 10:16 [gentoo-dev] openssh 3.6.1_p2 problem with pam (fwd) Andrea Barisani
2003-05-03 10:56 ` c.wegener [this message]
2003-05-03 11:02 ` Andrea Barisani
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20030503105643.GA1807@pbook.polysynx.foo \
--to=c.wegener@itcampus.de \
--cc=gentoo-dev@gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox