From owner-freebsd-current Sun Jan 20 16:18:37 2002 Delivered-To: freebsd-current@freebsd.org Received: from nagual.pp.ru (pobrecita.freebsd.ru [194.87.13.42]) by hub.freebsd.org (Postfix) with ESMTP id 1F14937B402 for ; Sun, 20 Jan 2002 16:18:34 -0800 (PST) Received: (from ache@localhost) by nagual.pp.ru (8.11.6/8.11.6) id g0L0IPC27866; Mon, 21 Jan 2002 03:18:26 +0300 (MSK) (envelope-from ache) Date: Mon, 21 Jan 2002 03:18:22 +0300 From: "Andrey A. Chernov" To: Mark Murray Cc: Dag-Erling Smorgrav , current@FreeBSD.ORG Subject: Re: Step5, pam_opie OPIE auth fix for review Message-ID: <20020121001822.GA27831@nagual.pp.ru> References: <200201210009.g0L09Lt34943@grimreaper.grondar.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200201210009.g0L09Lt34943@grimreaper.grondar.org> User-Agent: Mutt/1.3.24i 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 On Mon, Jan 21, 2002 at 00:09:21 +0000, Mark Murray wrote: > > Dag-Erling Smorgrav writes: > > > In any case, if I understand what you're trying to do, it can be done > > > by returning PAM_SUCCESS if OPIE authentication succeeded, PAM_IGNORE > > > if it failed but Unix authentication is still allowed, and > > > PAM_AUTH_ERR if OPIE failed and Unix authentication is *not* allowed. > > > In that case, if you mark pam_opie "sufficient", pam_unix will run > > > only if OPIE authentication failed but allowed Unix authentication to > > > proceed. > > > > Hmm, actually, that won't do. I need to think this over some more. > > The usual route is YES or NO, with IGNORE reserved for modules which > have no authentication (like say, pam_motd, which prints /etc/motd > during the pam_session_open() phase). IGNORE may have other uses, > but I can't remember them offhand. "sufficient" will not works due to IGNORE assigned to AUTH_ERR reaction. [default=ignore success=done auth_err=die] works. Do you agree with this variant? -- Andrey A. Chernov http://ache.pp.ru/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message