Return-Path: Received: from mx1.redhat.com ([209.132.183.28]:40184 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1760772AbZJMRwj (ORCPT ); Tue, 13 Oct 2009 13:52:39 -0400 Date: Tue, 13 Oct 2009 13:52:09 -0400 From: Jeff Layton To: raini@rainiday.com Cc: linux-nfs@vger.kernel.org, "Kevin Coffman" Subject: Re: [NFS] NFS/krb and batch jobs - doable? Message-ID: <20091013135209.77873c68@tlielax.poochiereds.net> In-Reply-To: <20091013133138.77c2cf35@tlielax.poochiereds.net> References: <20091009121602.5ec86dfb@tlielax.poochiereds.net> <1c358fde92c49215d84129a1bfe2c6ec.squirrel@webmail.rainiday.com> <20091010090039.4dfd1dfb@tlielax.poochiereds.net> <20091013114441.2882c8b9@tlielax.poochiereds.net> <08395e6249442278ab2b59c2ae4cfd14.squirrel@webmail.rainiday.com> <20091013133138.77c2cf35@tlielax.poochiereds.net> Content-Type: text/plain; charset=US-ASCII Sender: linux-nfs-owner@vger.kernel.org List-ID: MIME-Version: 1.0 On Tue, 13 Oct 2009 13:31:38 -0400 Jeff Layton wrote: > On Tue, 13 Oct 2009 08:59:29 -0700 > raini@rainiday.com wrote: > > > > > > You and Kevin are correct. rpc.gssd only looks at the mtime. When I did > > > the work to allow the CIFS SPNGEO upcall to find alternate credcaches, > > > I implemented the behavior I described (prefer the latest TGT > > > expiration) -- sorry for the confusion... > > > > > > It probably wouldn't be too hard to change rpc.gssd to prefer > > > credcaches with the latest TGT expiration if it was considered a > > > desirable change. > > > > > > Kevin, any thoughts? > > > > This would be a big plus from me - I still wouldn't be able to create > > per-job ccaches of course, but if a user who knew they needed to run a job > > could create a long lifetime renewable ticket in /tmp/krb5cc__batch, > > say, and NFS would use this in preference to a later login ticket, this > > would really help. > > > > > > Ok, here's a proposed patch...only compile-tested so far. I don't have > time at the moment to test it more extensively so if you could test it > out and report back, that would be helpful. > Looks like this patch will probably break the "preferred realm" code. It'll have to be respun to fix that, but it should work as expected in a single-realm environment. -- Jeff Layton