[33748] in Kerberos

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

best way to test if keytab is really there?

daemon@ATHENA.MIT.EDU (Chris Hecker)
Tue Aug 9 17:21:34 2011

Message-ID: <4E41A4D5.5010106@d6.com>
Date: Tue, 09 Aug 2011 14:21:25 -0700
From: Chris Hecker <checker@d6.com>
MIME-Version: 1.0
To: "kerberos@mit.edu" <kerberos@mit.edu>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Errors-To: kerberos-bounces@mit.edu


So, krb5_kt_resolve doesn't actually open the keytab, it defers the open 
and just gets the ops set up.  What's the best way to see if it's really 
there and valid?  It looks like I have to 
krb5_kt_start_seq_get/krb5_kt_end_seq_get to actually get it opened?

I could just stat() the file, but that seems cheesy.

Chris


________________________________________________
Kerberos mailing list           Kerberos@mit.edu
https://mailman.mit.edu/mailman/listinfo/kerberos

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