[15797] in Kerberos_V5_Development

home help back first fref pref prev next nref lref last post

Re: a suggestion for improving pkinit preauth plugin token choosing

daemon@ATHENA.MIT.EDU (Nicolas Williams)
Wed May 12 11:52:20 2010

Date: Wed, 12 May 2010 10:50:33 -0500
From: Nicolas Williams <Nicolas.Williams@oracle.com>
To: Sam Hartman <hartmans@mit.edu>
Message-ID: <20100512155031.GZ9429@oracle.com>
MIME-Version: 1.0
Content-Disposition: inline
In-Reply-To: <tslbpcl5ldk.fsf@mit.edu>
Cc: "Henry B. Hotz" <hotz@jpl.nasa.gov>, "krbdev@mit.edu" <krbdev@mit.edu>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Errors-To: krbdev-bounces@mit.edu

On Wed, May 12, 2010 at 08:56:39AM -0400, Sam Hartman wrote:
> I actually agree with henry that "please insert a token," should be out
> of scope for preauth plugins.
> My rationale is that the current prompter interface is kind of weak when
> it interacts with GUIs etc, and the more we can avoid using it, the
> better.

That rationale applies even more so to PAM than to the gic prompter.  At
least the gic prompter tells you what kind of thing it's prompting for,
whereas PAM has no such concept.  Yet we can't apply the same rationale
to PAM and say "sorry, no please insert a token prompt, you have to
figure out all by yourself that the reason you can't login is that you
haven't plugged your smartcard in".

> For example, what should that prompt read? "Press enter," may be right
> for a CLI instance, but will be wrongish for gdm.

First, this is easy to fix in the gic prompter: add new prompter types.

Second, this is a problem for PAM as well, and there there's no easy
fix.  PAM and gic are the interfaces that we've got, I'm afraid.  Giving
up on doing the best we can with the interface we have because we can't
get it to be perfect seems wrong to me; taking a detour to extend PAM
would be wrong as well as that'd be a huge project.

Nico
-- 
_______________________________________________
krbdev mailing list             krbdev@mit.edu
https://mailman.mit.edu/mailman/listinfo/krbdev

home help back first fref pref prev next nref lref last post