2003-10-09 19:36:20 +00:00
|
|
|
|
.\" Copyright (c) 1997 - 2003 Kungliga Tekniska H<>gskolan
|
|
|
|
|
.\" (Royal Institute of Technology, Stockholm, Sweden).
|
|
|
|
|
.\" All rights reserved.
|
|
|
|
|
.\"
|
|
|
|
|
.\" Redistribution and use in source and binary forms, with or without
|
|
|
|
|
.\" modification, are permitted provided that the following conditions
|
|
|
|
|
.\" are met:
|
|
|
|
|
.\"
|
|
|
|
|
.\" 1. Redistributions of source code must retain the above copyright
|
|
|
|
|
.\" notice, this list of conditions and the following disclaimer.
|
|
|
|
|
.\"
|
|
|
|
|
.\" 2. Redistributions in binary form must reproduce the above copyright
|
|
|
|
|
.\" notice, this list of conditions and the following disclaimer in the
|
|
|
|
|
.\" documentation and/or other materials provided with the distribution.
|
|
|
|
|
.\"
|
|
|
|
|
.\" 3. Neither the name of the Institute nor the names of its contributors
|
|
|
|
|
.\" may be used to endorse or promote products derived from this software
|
|
|
|
|
.\" without specific prior written permission.
|
|
|
|
|
.\"
|
|
|
|
|
.\" THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND
|
|
|
|
|
.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
|
|
|
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|
|
|
|
.\" ARE DISCLAIMED. IN NO EVENT SHALL THE INSTITUTE OR CONTRIBUTORS BE LIABLE
|
|
|
|
|
.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
|
|
|
.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
|
|
|
|
.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
|
|
|
|
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
|
|
|
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
|
|
|
|
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
|
|
|
|
.\" SUCH DAMAGE.
|
|
|
|
|
.\"
|
|
|
|
|
.\" $Id: ktutil.8,v 1.19 2003/04/08 20:55:10 lha Exp $
|
2000-01-09 20:58:00 +00:00
|
|
|
|
.\"
|
2001-02-13 16:46:19 +00:00
|
|
|
|
.Dd December 16, 2000
|
2000-01-09 20:58:00 +00:00
|
|
|
|
.Dt KTUTIL 8
|
|
|
|
|
.Os HEIMDAL
|
|
|
|
|
.Sh NAME
|
|
|
|
|
.Nm ktutil
|
2001-05-08 14:57:13 +00:00
|
|
|
|
.Nd manage Kerberos keytabs
|
2000-01-09 20:58:00 +00:00
|
|
|
|
.Sh SYNOPSIS
|
|
|
|
|
.Nm
|
2001-02-13 16:46:19 +00:00
|
|
|
|
.Oo Fl k Ar keytab \*(Ba Xo
|
2002-08-30 21:23:27 +00:00
|
|
|
|
.Fl -keytab= Ns Ar keytab
|
2001-02-13 16:46:19 +00:00
|
|
|
|
.Xc
|
|
|
|
|
.Oc
|
|
|
|
|
.Op Fl v | Fl -verbose
|
2000-01-09 20:58:00 +00:00
|
|
|
|
.Op Fl -version
|
2001-02-13 16:46:19 +00:00
|
|
|
|
.Op Fl h | Fl -help
|
2002-08-30 21:23:27 +00:00
|
|
|
|
.Ar command
|
2001-02-13 16:46:19 +00:00
|
|
|
|
.Op Ar args
|
2000-01-09 20:58:00 +00:00
|
|
|
|
.Sh DESCRIPTION
|
|
|
|
|
.Nm
|
|
|
|
|
is a program for managing keytabs.
|
2003-10-09 19:36:20 +00:00
|
|
|
|
Supported options:
|
|
|
|
|
.Bl -tag -width Ds
|
|
|
|
|
.It Xo
|
|
|
|
|
.Fl v ,
|
|
|
|
|
.Fl -verbose
|
|
|
|
|
.Xc
|
|
|
|
|
Verbose output.
|
|
|
|
|
.El
|
|
|
|
|
.Pp
|
2000-01-09 20:58:00 +00:00
|
|
|
|
.Ar command
|
|
|
|
|
can be one of the following:
|
2002-02-19 15:46:56 +00:00
|
|
|
|
.Bl -tag -width srvconvert
|
2000-01-09 20:58:00 +00:00
|
|
|
|
.It add Xo
|
|
|
|
|
.Op Fl p Ar principal
|
|
|
|
|
.Op Fl -principal= Ns Ar principal
|
|
|
|
|
.Op Fl V Ar kvno
|
|
|
|
|
.Op Fl -kvno= Ns Ar kvno
|
2003-10-09 19:36:20 +00:00
|
|
|
|
.Op Fl e Ar enctype
|
2000-01-09 20:58:00 +00:00
|
|
|
|
.Op Fl -enctype= Ns Ar enctype
|
|
|
|
|
.Op Fl w Ar password
|
|
|
|
|
.Op Fl -password= Ns Ar password
|
|
|
|
|
.Op Fl r
|
|
|
|
|
.Op Fl -random
|
|
|
|
|
.Op Fl s
|
|
|
|
|
.Op Fl -no-salt
|
|
|
|
|
.Xc
|
|
|
|
|
Adds a key to the keytab. Options that are not specified will be
|
2002-02-19 15:46:56 +00:00
|
|
|
|
prompted for. This requires that you know the password of the
|
|
|
|
|
principal to add; if what you really want is to add a new principal to
|
|
|
|
|
the keytab, you should consider the
|
|
|
|
|
.Ar get
|
|
|
|
|
command, which talks to the kadmin server.
|
2000-01-09 20:58:00 +00:00
|
|
|
|
.It change Xo
|
|
|
|
|
.Op Fl r Ar realm
|
|
|
|
|
.Op Fl -realm= Ns Ar realm
|
|
|
|
|
.Op Fl -a Ar host
|
2001-02-13 16:46:19 +00:00
|
|
|
|
.Op Fl -admin-server= Ns Ar host
|
2000-01-09 20:58:00 +00:00
|
|
|
|
.Op Fl -s Ar port
|
|
|
|
|
.Op Fl -server-port= Ns Ar port
|
|
|
|
|
.Xc
|
|
|
|
|
Update one or several keys to new versions. By default, use the admin
|
2003-10-09 19:36:20 +00:00
|
|
|
|
server for the realm of a keytab entry. Otherwise it will use the
|
2000-01-09 20:58:00 +00:00
|
|
|
|
values specified by the options.
|
|
|
|
|
.Pp
|
|
|
|
|
If no principals are given, all the ones in the keytab are updated.
|
|
|
|
|
.It copy Xo
|
|
|
|
|
.Ar keytab-src
|
|
|
|
|
.Ar keytab-dest
|
|
|
|
|
.Xc
|
|
|
|
|
Copies all the entries from
|
|
|
|
|
.Ar keytab-src
|
|
|
|
|
to
|
|
|
|
|
.Ar keytab-dest .
|
|
|
|
|
.It get Xo
|
|
|
|
|
.Op Fl p Ar admin principal
|
|
|
|
|
.Op Fl -principal= Ns Ar admin principal
|
2002-02-19 15:46:56 +00:00
|
|
|
|
.Op Fl e Ar enctype
|
|
|
|
|
.Op Fl -enctypes= Ns Ar enctype
|
2000-01-09 20:58:00 +00:00
|
|
|
|
.Op Fl r Ar realm
|
|
|
|
|
.Op Fl -realm= Ns Ar realm
|
|
|
|
|
.Op Fl a Ar admin server
|
|
|
|
|
.Op Fl -admin-server= Ns Ar admin server
|
|
|
|
|
.Op Fl s Ar server port
|
|
|
|
|
.Op Fl -server-port= Ns Ar server port
|
2002-02-19 15:46:56 +00:00
|
|
|
|
.Ar principal ...
|
2000-01-09 20:58:00 +00:00
|
|
|
|
.Xc
|
2002-02-19 15:46:56 +00:00
|
|
|
|
For each
|
|
|
|
|
.Ar principal ,
|
|
|
|
|
generate a new key for it (creating it if it doesn't already exist),
|
|
|
|
|
and put that key in the keytab.
|
|
|
|
|
.Pp
|
|
|
|
|
If no
|
|
|
|
|
.Ar realm
|
|
|
|
|
is specified, the realm to operate on is taken from the first
|
|
|
|
|
principal.
|
2001-02-13 16:46:19 +00:00
|
|
|
|
.It list Xo
|
|
|
|
|
.Op Fl -keys
|
|
|
|
|
.Op Fl -timestamp
|
|
|
|
|
.Xc
|
2000-01-09 20:58:00 +00:00
|
|
|
|
List the keys stored in the keytab.
|
|
|
|
|
.It remove Xo
|
|
|
|
|
.Op Fl p Ar principal
|
|
|
|
|
.Op Fl -principal= Ns Ar principal
|
|
|
|
|
.Op Fl V kvno
|
|
|
|
|
.Op Fl -kvno= Ns Ar kvno
|
|
|
|
|
.Op Fl e enctype
|
|
|
|
|
.Op Fl -enctype= Ns Ar enctype
|
|
|
|
|
.Xc
|
|
|
|
|
Removes the specified key or keys. Not specifying a
|
|
|
|
|
.Ar kvno
|
2003-10-09 19:36:20 +00:00
|
|
|
|
removes keys with any version number. Not specifying an
|
2000-01-09 20:58:00 +00:00
|
|
|
|
.Ar enctype
|
|
|
|
|
removes keys of any type.
|
2002-02-19 15:46:56 +00:00
|
|
|
|
.It rename Xo
|
|
|
|
|
.Ar from-principal
|
|
|
|
|
.Ar to-principal
|
|
|
|
|
.Xc
|
|
|
|
|
Renames all entries in the keytab that match the
|
|
|
|
|
.Ar from-principal
|
2002-08-30 21:23:27 +00:00
|
|
|
|
to
|
2002-02-19 15:46:56 +00:00
|
|
|
|
.Ar to-principal .
|
2000-01-09 20:58:00 +00:00
|
|
|
|
.It purge Xo
|
|
|
|
|
.Op Fl -age= Ns Ar age
|
|
|
|
|
.Xc
|
|
|
|
|
Removes all old entries (for which there is a newer version) that are
|
|
|
|
|
older than
|
2002-08-30 21:23:27 +00:00
|
|
|
|
.Ar age
|
2001-02-13 16:46:19 +00:00
|
|
|
|
(default one week).
|
2000-01-09 20:58:00 +00:00
|
|
|
|
.It srvconvert
|
|
|
|
|
.It srv2keytab Xo
|
|
|
|
|
.Op Fl s Ar srvtab
|
|
|
|
|
.Op Fl -srvtab= Ns Ar srvtab
|
|
|
|
|
.Xc
|
|
|
|
|
Converts the version 4 srvtab in
|
|
|
|
|
.Ar srvtab
|
|
|
|
|
to a version 5 keytab and stores it in
|
2002-08-30 21:23:27 +00:00
|
|
|
|
.Ar keytab .
|
2001-02-13 16:46:19 +00:00
|
|
|
|
Identical to:
|
|
|
|
|
.Bd -ragged -offset indent
|
2002-08-30 21:23:27 +00:00
|
|
|
|
.Li ktutil copy
|
2001-02-13 16:46:19 +00:00
|
|
|
|
.Li krb4: Ns Ar srvtab
|
2002-08-30 21:23:27 +00:00
|
|
|
|
.Ar keytab
|
2001-02-13 16:46:19 +00:00
|
|
|
|
.Ed
|
2000-01-09 20:58:00 +00:00
|
|
|
|
.It srvcreate
|
|
|
|
|
.It key2srvtab Xo
|
|
|
|
|
.Op Fl s Ar srvtab
|
|
|
|
|
.Op Fl -srvtab= Ns Ar srvtab
|
|
|
|
|
.Xc
|
|
|
|
|
Converts the version 5 keytab in
|
|
|
|
|
.Ar keytab
|
|
|
|
|
to a version 4 srvtab and stores it in
|
|
|
|
|
.Ar srvtab .
|
2001-02-13 16:46:19 +00:00
|
|
|
|
Identical to:
|
|
|
|
|
.Bd -ragged -offset indent
|
2002-08-30 21:23:27 +00:00
|
|
|
|
.Li ktutil copy
|
|
|
|
|
.Ar keytab
|
2001-02-13 16:46:19 +00:00
|
|
|
|
.Li krb4: Ns Ar srvtab
|
|
|
|
|
.Ed
|
2000-01-09 20:58:00 +00:00
|
|
|
|
.El
|
|
|
|
|
.Sh SEE ALSO
|
|
|
|
|
.Xr kadmin 8
|