1 .\" $NetBSD: ktutil.8,v 1.4 2014/04/25 00:26:16 pettai Exp $
3 .\" Copyright (c) 1997-2004 Kungliga Tekniska Högskolan
4 .\" (Royal Institute of Technology, Stockholm, Sweden).
5 .\" All rights reserved.
7 .\" Redistribution and use in source and binary forms, with or without
8 .\" modification, are permitted provided that the following conditions
11 .\" 1. Redistributions of source code must retain the above copyright
12 .\" notice, this list of conditions and the following disclaimer.
14 .\" 2. Redistributions in binary form must reproduce the above copyright
15 .\" notice, this list of conditions and the following disclaimer in the
16 .\" documentation and/or other materials provided with the distribution.
18 .\" 3. Neither the name of the Institute nor the names of its contributors
19 .\" may be used to endorse or promote products derived from this software
20 .\" without specific prior written permission.
22 .\" THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND
23 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
24 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
25 .\" ARE DISCLAIMED. IN NO EVENT SHALL THE INSTITUTE OR CONTRIBUTORS BE LIABLE
26 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
27 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
28 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
29 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
30 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
31 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
41 .Nd manage Kerberos keytabs
44 .Oo Fl k Ar keytab \*(Ba Xo
45 .Fl Fl keytab= Ns Ar keytab
48 .Op Fl v | Fl Fl verbose
55 is a program for managing keytabs.
58 .It Fl v , Fl Fl verbose
63 can be one of the following:
64 .Bl -tag -width srvconvert
65 .It add Oo Fl p Ar principal Oc Oo Fl Fl principal= Ns Ar principal Oc \
66 Oo Fl V Ar kvno Oc Oo Fl Fl kvno= Ns Ar kvno Oc Oo Fl e Ar enctype Oc \
67 Oo Fl Fl enctype= Ns Ar enctype Oc Oo Fl w Ar password Oc \
68 Oo Fl Fl password= Ns Ar password Oc Oo Fl r Oc Oo Fl Fl random Oc \
69 Oo Fl s Oc Oo Fl Fl no-salt Oc Oo Fl H Oc Op Fl Fl hex
70 Adds a key to the keytab. Options that are not specified will be
71 prompted for. This requires that you know the password or the hex key of the
72 principal to add; if what you really want is to add a new principal to
73 the keytab, you should consider the
75 command, which talks to the kadmin server.
76 .It change Oo Fl r Ar realm Oc Oo Fl Fl realm= Ns Ar realm Oc \
77 Oo Fl Fl a Ar host Oc Oo Fl Fl admin-server= Ns Ar host Oc \
78 Oo Fl Fl s Ar port Oc Op Fl Fl server-port= Ns Ar port
79 Update one or several keys to new versions. By default, use the admin
80 server for the realm of a keytab entry. Otherwise it will use the
81 values specified by the options.
83 If no principals are given, all the ones in the keytab are updated.
84 .It copy Ar keytab-src Ar keytab-dest
85 Copies all the entries from
89 .It get Oo Fl p Ar admin principal Oc \
90 Oo Fl Fl principal= Ns Ar admin principal Oc Oo Fl e Ar enctype Oc \
91 Oo Fl Fl enctypes= Ns Ar enctype Oc Oo Fl r Ar realm Oc \
92 Oo Fl Fl realm= Ns Ar realm Oc Oo Fl a Ar admin server Oc \
93 Oo Fl Fl admin-server= Ns Ar admin server Oc Oo Fl s Ar server port Oc \
94 Oo Fl Fl server-port= Ns Ar server port Oc Ar principal ...
97 generate a new key for it (creating it if it doesn't already exist),
98 and put that key in the keytab.
102 is specified, the realm to operate on is taken from the first
104 .It list Oo Fl Fl keys Oc Op Fl Fl timestamp
105 List the keys stored in the keytab.
106 .It remove Oo Fl p Ar principal Oc Oo Fl Fl principal= Ns Ar principal Oc \
107 Oo Fl V kvno Oc Oo Fl Fl kvno= Ns Ar kvno Oc Oo Fl e enctype Oc \
108 Oo Fl Fl enctype= Ns Ar enctype Oc
109 Removes the specified key or keys. Not specifying a
111 removes keys with any version number. Not specifying an
113 removes keys of any type.
114 .It rename Ar from-principal Ar to-principal
115 Renames all entries in the keytab that match the
119 .It purge Op Fl Fl age= Ns Ar age
120 Removes all old versions of a key for which there is a newer version
123 (default one week) old.