1 .\" $Id: ktutil.8,v 1.15 2002/08/20 17:07:00 joda Exp $
8 .Nd manage Kerberos keytabs
11 .Oo Fl k Ar keytab \*(Ba Xo
12 .Fl -keytab= Ns Ar keytab
15 .Op Fl v | Fl -verbose
22 is a program for managing keytabs.
24 can be one of the following:
25 .Bl -tag -width srvconvert
28 .Op Fl -principal= Ns Ar principal
30 .Op Fl -kvno= Ns Ar kvno
32 .Op Fl -enctype= Ns Ar enctype
34 .Op Fl -password= Ns Ar password
40 Adds a key to the keytab. Options that are not specified will be
41 prompted for. This requires that you know the password of the
42 principal to add; if what you really want is to add a new principal to
43 the keytab, you should consider the
45 command, which talks to the kadmin server.
48 .Op Fl -realm= Ns Ar realm
50 .Op Fl -admin-server= Ns Ar host
52 .Op Fl -server-port= Ns Ar port
54 Update one or several keys to new versions. By default, use the admin
55 server for the realm of an keytab entry. Otherwise it will use the
56 values specified by the options.
58 If no principals are given, all the ones in the keytab are updated.
63 Copies all the entries from
68 .Op Fl p Ar admin principal
69 .Op Fl -principal= Ns Ar admin principal
71 .Op Fl -enctypes= Ns Ar enctype
73 .Op Fl -realm= Ns Ar realm
74 .Op Fl a Ar admin server
75 .Op Fl -admin-server= Ns Ar admin server
76 .Op Fl s Ar server port
77 .Op Fl -server-port= Ns Ar server port
82 generate a new key for it (creating it if it doesn't already exist),
83 and put that key in the keytab.
87 is specified, the realm to operate on is taken from the first
93 List the keys stored in the keytab.
96 .Op Fl -principal= Ns Ar principal
98 .Op Fl -kvno= Ns Ar kvno
100 .Op Fl -enctype= Ns Ar enctype
102 Removes the specified key or keys. Not specifying a
104 removes keys with any version number. Not specifying a
106 removes keys of any type.
111 Renames all entries in the keytab that match the
116 .Op Fl -age= Ns Ar age
118 Removes all old entries (for which there is a newer version) that are
125 .Op Fl -srvtab= Ns Ar srvtab
127 Converts the version 4 srvtab in
129 to a version 5 keytab and stores it in
132 .Bd -ragged -offset indent
134 .Li krb4: Ns Ar srvtab
140 .Op Fl -srvtab= Ns Ar srvtab
142 Converts the version 5 keytab in
144 to a version 4 srvtab and stores it in
147 .Bd -ragged -offset indent
150 .Li krb4: Ns Ar srvtab