On Wed, 27 Jan 2010 16:27:59 +0100
Holger Rauch <[email protected]> wrote:

> - Could it be that the kvno doesn't match?
> 
> - What's the default kvno for princs that are created interactively
> from within kadmin using the "addprinc" command?
> 
> - In case I want to reuse a regular user princ from within a keytab in
>   order to be able to do "kinit -kt <keytab_file> <princ>" from within
>   a crontab entry, do I have to pass the same kvno as an argument to
>   the "-k" switch of ktutil's "addent" command?
>   
> Any clarification is greatly appreciated. Thanks in advance.

I thought I sent a response to this, but I'm not seeing it. I don't know
if I feel like retyping the whole thing, but the gist of it was the
example:

(summary: 'kvno' can tell you the kvno, and 'klist -e' can tell you the
enctype)

$ kinit adeason
Password for adea...@localcell:
$ klist -e
Ticket cache: FILE:/tmp/krb5cc_1000
Default principal: adea...@localcell
  
  Valid starting     Expires            Service principal
  01/27/10 10:28:36  01/28/10 10:28:36  krbtgt/localc...@localcell
          Etype (skey, tkt): Triple DES cbc mode with HMAC/sha1, Triple DES cbc 
mode with HMAC/sha1

$ kvno -c /tmp/krb5cc_1000 adeason
adea...@localcell: kvno = 1
$ kdestroy
$ ktutil
ktutil:  addent -password -p adeason -k 1 -e des3-cbc-sha1
Password for adea...@localcell:
ktutil:  wkt foo.keytab
ktutil:
$ kinit -k -t foo.keytab adeason
$ echo $?
0

-- 
Andrew Deason
[email protected]
_______________________________________________
OpenAFS-info mailing list
[email protected]
https://lists.openafs.org/mailman/listinfo/openafs-info

Reply via email to