From owner-freebsd-current Sun Jan 20 12:13:37 2002 Delivered-To: freebsd-current@freebsd.org Received: from flood.ping.uio.no (flood.ping.uio.no [129.240.78.31]) by hub.freebsd.org (Postfix) with ESMTP id A3F6C37B404 for ; Sun, 20 Jan 2002 12:13:35 -0800 (PST) Received: by flood.ping.uio.no (Postfix, from userid 2602) id 47F35532C; Sun, 20 Jan 2002 21:13:34 +0100 (CET) X-URL: http://www.ofug.org/~des/ X-Disclaimer: The views expressed in this message do not necessarily coincide with those of any organisation or company with which I am or have been affiliated. To: Mark Murray Cc: "Andrey A. Chernov" , current@freebsd.org Subject: Re: Step2, pam_unix just expired pass fix for review References: <20020120195737.GB24138@nagual.pp.ru> <200201202006.g0KK6Wt32931@grimreaper.grondar.org> From: Dag-Erling Smorgrav Date: 20 Jan 2002 21:13:33 +0100 In-Reply-To: <200201202006.g0KK6Wt32931@grimreaper.grondar.org> Message-ID: Lines: 19 User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Mark Murray writes: > > On Sun, Jan 20, 2002 at 19:47:55 +0000, Mark Murray wrote: > > > Do you mean that at at the very edge of password expiry, the user may > > > still be able log in (maybe some seconds later)? If so this is not a > > > credible threat. > > Yes. Few seconds can be few hours or more in case network is down or > > something like, this mainly for network passwords like NIS. > This is still not something that is pam_authenticate()'s business. [...] I think this is all a misunderstanding (I misunderstood it too at first). There is no race. First, pam_authenticate() returns PAM_SUCCESS if the password was correct, regardless of whether it's expired. Next, pam_acct_mgmt() returns PAM_AUTHTOK_EXPIRED if the password has expired when it is called. Everything works as expected even if the password expires between the two calls. DES -- Dag-Erling Smorgrav - des@ofug.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message