Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 21 Jan 2002 00:09:21 +0000
From:      Mark Murray <mark@grondar.za>
To:        Dag-Erling Smorgrav <des@ofug.org>
Cc:        "Andrey A. Chernov" <ache@nagual.pp.ru>, current@FreeBSD.ORG
Subject:   Re: Step5, pam_opie OPIE auth fix for review 
Message-ID:  <200201210009.g0L09Lt34943@grimreaper.grondar.org>
In-Reply-To: <xzpr8ok1sl6.fsf@flood.ping.uio.no> ; from Dag-Erling Smorgrav <des@ofug.org>  "21 Jan 2002 01:00:05 %2B0100."
References:  <xzpr8ok1sl6.fsf@flood.ping.uio.no> 

next in thread | previous in thread | raw e-mail | index | archive | help
> Dag-Erling Smorgrav <des@ofug.org> 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.

M
-- 
o       Mark Murray
\_      FreeBSD Services Limited
O.\_    Warning: this .sig is umop ap!sdn

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200201210009.g0L09Lt34943>