2003-10-09 19:36:20 +00:00
|
|
|
|
.\" Copyright (c) 2000 - 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: kadmin.8,v 1.10 2003/03/31 10:42:32 lha Exp $
|
2001-02-13 16:46:19 +00:00
|
|
|
|
.\"
|
|
|
|
|
.Dd September 10, 2000
|
|
|
|
|
.Dt KADMIN 8
|
|
|
|
|
.Os HEIMDAL
|
|
|
|
|
.Sh NAME
|
|
|
|
|
.Nm kadmin
|
2001-05-08 14:57:13 +00:00
|
|
|
|
.Nd Kerberos administration utility
|
2001-02-13 16:46:19 +00:00
|
|
|
|
.Sh SYNOPSIS
|
|
|
|
|
.Nm
|
|
|
|
|
.Oo Fl p Ar string \*(Ba Xo
|
2001-06-21 02:12:07 +00:00
|
|
|
|
.Fl -principal= Ns Ar string
|
|
|
|
|
.Xc
|
|
|
|
|
.Oc
|
|
|
|
|
.Oo Fl K Ar string \*(Ba Xo
|
|
|
|
|
.Fl -keytab= Ns Ar string
|
2001-02-13 16:46:19 +00:00
|
|
|
|
.Xc
|
2001-06-21 02:12:07 +00:00
|
|
|
|
.Oc
|
2001-02-13 16:46:19 +00:00
|
|
|
|
.Oo Fl c Ar file \*(Ba Xo
|
2001-06-21 02:12:07 +00:00
|
|
|
|
.Fl -config-file= Ns Ar file
|
2001-02-13 16:46:19 +00:00
|
|
|
|
.Xc
|
2001-06-21 02:12:07 +00:00
|
|
|
|
.Oc
|
2001-02-13 16:46:19 +00:00
|
|
|
|
.Oo Fl k Ar file \*(Ba Xo
|
2001-06-21 02:12:07 +00:00
|
|
|
|
.Fl -key-file= Ns Ar file
|
2001-02-13 16:46:19 +00:00
|
|
|
|
.Xc
|
2001-06-21 02:12:07 +00:00
|
|
|
|
.Oc
|
2001-02-13 16:46:19 +00:00
|
|
|
|
.Oo Fl r Ar realm \*(Ba Xo
|
2001-06-21 02:12:07 +00:00
|
|
|
|
.Fl -realm= Ns Ar realm
|
2001-02-13 16:46:19 +00:00
|
|
|
|
.Xc
|
2001-06-21 02:12:07 +00:00
|
|
|
|
.Oc
|
2001-02-13 16:46:19 +00:00
|
|
|
|
.Oo Fl a Ar host \*(Ba Xo
|
2001-06-21 02:12:07 +00:00
|
|
|
|
.Fl -admin-server= Ns Ar host
|
2001-02-13 16:46:19 +00:00
|
|
|
|
.Xc
|
2001-06-21 02:12:07 +00:00
|
|
|
|
.Oc
|
2001-02-13 16:46:19 +00:00
|
|
|
|
.Oo Fl s Ar port number \*(Ba Xo
|
2001-06-21 02:12:07 +00:00
|
|
|
|
.Fl -server-port= Ns Ar port number
|
2001-02-13 16:46:19 +00:00
|
|
|
|
.Xc
|
2001-06-21 02:12:07 +00:00
|
|
|
|
.Oc
|
2001-02-13 16:46:19 +00:00
|
|
|
|
.Op Fl l | Fl -local
|
|
|
|
|
.Op Fl h | Fl -help
|
|
|
|
|
.Op Fl v | Fl -version
|
|
|
|
|
.Op Ar command
|
|
|
|
|
.Sh DESCRIPTION
|
|
|
|
|
The
|
|
|
|
|
.Nm
|
2003-10-09 19:36:20 +00:00
|
|
|
|
program is used to make modifications to the Kerberos database, either remotely via the
|
2001-02-13 16:46:19 +00:00
|
|
|
|
.Xr kadmind 8
|
2002-08-30 21:23:27 +00:00
|
|
|
|
daemon, or locally (with the
|
|
|
|
|
.Fl l
|
2001-02-13 16:46:19 +00:00
|
|
|
|
option).
|
|
|
|
|
.Pp
|
|
|
|
|
Supported options:
|
|
|
|
|
.Bl -tag -width Ds
|
|
|
|
|
.It Xo
|
2002-08-30 21:23:27 +00:00
|
|
|
|
.Fl p Ar string ,
|
2001-02-13 16:46:19 +00:00
|
|
|
|
.Fl -principal= Ns Ar string
|
|
|
|
|
.Xc
|
|
|
|
|
principal to authenticate as
|
|
|
|
|
.It Xo
|
2002-08-30 21:23:27 +00:00
|
|
|
|
.Fl K Ar string ,
|
2001-06-21 02:12:07 +00:00
|
|
|
|
.Fl -keytab= Ns Ar string
|
|
|
|
|
.Xc
|
2003-10-09 19:36:20 +00:00
|
|
|
|
keytab for authentication principal
|
2001-06-21 02:12:07 +00:00
|
|
|
|
.It Xo
|
2002-08-30 21:23:27 +00:00
|
|
|
|
.Fl c Ar file ,
|
2001-02-13 16:46:19 +00:00
|
|
|
|
.Fl -config-file= Ns Ar file
|
|
|
|
|
.Xc
|
|
|
|
|
location of config file
|
|
|
|
|
.It Xo
|
2002-08-30 21:23:27 +00:00
|
|
|
|
.Fl k Ar file ,
|
2001-02-13 16:46:19 +00:00
|
|
|
|
.Fl -key-file= Ns Ar file
|
|
|
|
|
.Xc
|
|
|
|
|
location of master key file
|
|
|
|
|
.It Xo
|
2002-08-30 21:23:27 +00:00
|
|
|
|
.Fl r Ar realm ,
|
2001-02-13 16:46:19 +00:00
|
|
|
|
.Fl -realm= Ns Ar realm
|
|
|
|
|
.Xc
|
|
|
|
|
realm to use
|
|
|
|
|
.It Xo
|
2002-08-30 21:23:27 +00:00
|
|
|
|
.Fl a Ar host ,
|
2001-02-13 16:46:19 +00:00
|
|
|
|
.Fl -admin-server= Ns Ar host
|
|
|
|
|
.Xc
|
|
|
|
|
server to contact
|
|
|
|
|
.It Xo
|
2002-08-30 21:23:27 +00:00
|
|
|
|
.Fl s Ar port number ,
|
2001-02-13 16:46:19 +00:00
|
|
|
|
.Fl -server-port= Ns Ar port number
|
|
|
|
|
.Xc
|
|
|
|
|
port to use
|
|
|
|
|
.It Xo
|
2002-08-30 21:23:27 +00:00
|
|
|
|
.Fl l ,
|
2001-02-13 16:46:19 +00:00
|
|
|
|
.Fl -local
|
|
|
|
|
.Xc
|
|
|
|
|
local admin mode
|
|
|
|
|
.El
|
|
|
|
|
.Pp
|
2002-08-30 21:23:27 +00:00
|
|
|
|
If no
|
2001-02-13 16:46:19 +00:00
|
|
|
|
.Ar command
|
|
|
|
|
is given on the command line,
|
2002-08-30 21:23:27 +00:00
|
|
|
|
.Nm
|
2001-02-13 16:46:19 +00:00
|
|
|
|
will prompt for commands to process. Commands include:
|
2002-08-30 21:23:27 +00:00
|
|
|
|
.\" not using a list here, since groff apparently gets confused
|
2001-02-13 16:46:19 +00:00
|
|
|
|
.\" with nested Xo/Xc
|
|
|
|
|
.Bd -ragged -offset indent
|
|
|
|
|
.Nm add
|
|
|
|
|
.Op Fl r | Fl -random-key
|
|
|
|
|
.Op Fl -random-password
|
|
|
|
|
.Oo Fl p Ar string \*(Ba Xo
|
2001-06-21 02:12:07 +00:00
|
|
|
|
.Fl -password= Ns Ar string
|
2001-02-13 16:46:19 +00:00
|
|
|
|
.Xc
|
2001-06-21 02:12:07 +00:00
|
|
|
|
.Oc
|
2001-02-13 16:46:19 +00:00
|
|
|
|
.Op Fl -key= Ns Ar string
|
|
|
|
|
.Op Fl -max-ticket-life= Ns Ar lifetime
|
|
|
|
|
.Op Fl -max-renewable-life= Ns Ar lifetime
|
|
|
|
|
.Op Fl -attributes= Ns Ar attributes
|
|
|
|
|
.Op Fl -expiration-time= Ns Ar time
|
|
|
|
|
.Op Fl -pw-expiration-time= Ns Ar time
|
|
|
|
|
.Ar principal...
|
|
|
|
|
.Pp
|
2001-05-08 14:57:13 +00:00
|
|
|
|
.Bd -ragged -offset indent
|
2001-02-13 16:46:19 +00:00
|
|
|
|
creates a new principal
|
|
|
|
|
.Ed
|
|
|
|
|
.Pp
|
|
|
|
|
.Nm passwd
|
|
|
|
|
.Op Fl r | Fl -random-key
|
|
|
|
|
.Op Fl -random-password
|
|
|
|
|
.Oo Fl p Ar string \*(Ba Xo
|
2001-06-21 02:12:07 +00:00
|
|
|
|
.Fl -password= Ns Ar string
|
2001-02-13 16:46:19 +00:00
|
|
|
|
.Xc
|
2001-06-21 02:12:07 +00:00
|
|
|
|
.Oc
|
2001-02-13 16:46:19 +00:00
|
|
|
|
.Op Fl -key= Ns Ar string
|
|
|
|
|
.Ar principal...
|
|
|
|
|
.Pp
|
2001-05-08 14:57:13 +00:00
|
|
|
|
.Bd -ragged -offset indent
|
2001-02-13 16:46:19 +00:00
|
|
|
|
changes the password of an existing principal
|
|
|
|
|
.Ed
|
|
|
|
|
.Pp
|
|
|
|
|
.Nm delete
|
|
|
|
|
.Ar principal...
|
|
|
|
|
.Pp
|
2001-05-08 14:57:13 +00:00
|
|
|
|
.Bd -ragged -offset indent
|
2001-02-13 16:46:19 +00:00
|
|
|
|
removes a principal
|
|
|
|
|
.Ed
|
|
|
|
|
.Pp
|
|
|
|
|
.Nm del_enctype
|
|
|
|
|
.Ar principal enctypes...
|
|
|
|
|
.Pp
|
2001-05-08 14:57:13 +00:00
|
|
|
|
.Bd -ragged -offset indent
|
2003-10-09 19:36:20 +00:00
|
|
|
|
removes some enctypes from a principal. This can be useful the service
|
2001-02-13 16:46:19 +00:00
|
|
|
|
belonging to the principal is known to not handle certain enctypes
|
|
|
|
|
.Ed
|
|
|
|
|
.Pp
|
|
|
|
|
.Nm ext_keytab
|
|
|
|
|
.Oo Fl k Ar string \*(Ba Xo
|
2001-06-21 02:12:07 +00:00
|
|
|
|
.Fl -keytab= Ns Ar string
|
2001-02-13 16:46:19 +00:00
|
|
|
|
.Xc
|
2001-06-21 02:12:07 +00:00
|
|
|
|
.Oc
|
2001-02-13 16:46:19 +00:00
|
|
|
|
.Ar principal...
|
|
|
|
|
.Pp
|
2001-05-08 14:57:13 +00:00
|
|
|
|
.Bd -ragged -offset indent
|
2001-02-13 16:46:19 +00:00
|
|
|
|
creates a keytab with the keys of the specified principals
|
|
|
|
|
.Ed
|
|
|
|
|
.Pp
|
|
|
|
|
.Nm get
|
|
|
|
|
.Op Fl l | Fl -long
|
|
|
|
|
.Op Fl s | Fl -short
|
|
|
|
|
.Op Fl t | Fl -terse
|
|
|
|
|
.Ar expression...
|
|
|
|
|
.Pp
|
2001-05-08 14:57:13 +00:00
|
|
|
|
.Bd -ragged -offset indent
|
2001-02-13 16:46:19 +00:00
|
|
|
|
lists the principals that match the expressions (which are shell glob
|
|
|
|
|
like), long format gives more information, and terse just prints the
|
|
|
|
|
names
|
|
|
|
|
.Ed
|
|
|
|
|
.Pp
|
|
|
|
|
.Nm rename
|
|
|
|
|
.Ar from to
|
|
|
|
|
.Pp
|
2001-05-08 14:57:13 +00:00
|
|
|
|
.Bd -ragged -offset indent
|
2001-02-13 16:46:19 +00:00
|
|
|
|
renames a principal
|
|
|
|
|
.Ed
|
|
|
|
|
.Pp
|
|
|
|
|
.Nm modify
|
|
|
|
|
.Oo Fl a Ar attributes \*(Ba Xo
|
2001-06-21 02:12:07 +00:00
|
|
|
|
.Fl -attributes= Ns Ar attributes
|
2001-02-13 16:46:19 +00:00
|
|
|
|
.Xc
|
2001-06-21 02:12:07 +00:00
|
|
|
|
.Oc
|
2001-02-13 16:46:19 +00:00
|
|
|
|
.Op Fl -max-ticket-life= Ns Ar lifetime
|
|
|
|
|
.Op Fl -max-renewable-life= Ns Ar lifetime
|
|
|
|
|
.Op Fl -expiration-time= Ns Ar time
|
|
|
|
|
.Op Fl -pw-expiration-time= Ns Ar time
|
|
|
|
|
.Op Fl -kvno= Ns Ar number
|
|
|
|
|
.Ar principal
|
|
|
|
|
.Pp
|
2001-05-08 14:57:13 +00:00
|
|
|
|
.Bd -ragged -offset indent
|
2001-02-13 16:46:19 +00:00
|
|
|
|
modifies certain attributes of a principal
|
|
|
|
|
.Ed
|
|
|
|
|
.Pp
|
|
|
|
|
.Nm privileges
|
|
|
|
|
.Pp
|
2001-05-08 14:57:13 +00:00
|
|
|
|
.Bd -ragged -offset indent
|
2003-10-09 19:36:20 +00:00
|
|
|
|
lists the operations you are allowed to perform
|
2001-02-13 16:46:19 +00:00
|
|
|
|
.Ed
|
|
|
|
|
.Pp
|
|
|
|
|
.Ed
|
2001-05-08 14:57:13 +00:00
|
|
|
|
.Pp
|
2003-10-09 19:36:20 +00:00
|
|
|
|
When running in local mode, the following commands can also be used:
|
2001-02-13 16:46:19 +00:00
|
|
|
|
.Bd -ragged -offset indent
|
|
|
|
|
.Nm dump
|
|
|
|
|
.Op Fl d | Fl -decrypt
|
|
|
|
|
.Op Ar dump-file
|
|
|
|
|
.Pp
|
2001-05-08 14:57:13 +00:00
|
|
|
|
.Bd -ragged -offset indent
|
2001-02-13 16:46:19 +00:00
|
|
|
|
writes the database in
|
|
|
|
|
.Dq human readable
|
|
|
|
|
form to the specified file, or standard out
|
|
|
|
|
.Ed
|
|
|
|
|
.Pp
|
|
|
|
|
.Nm init
|
|
|
|
|
.Op Fl -realm-max-ticket-life= Ns Ar string
|
|
|
|
|
.Op Fl -realm-max-renewable-life= Ns Ar string
|
|
|
|
|
.Ar realm
|
|
|
|
|
.Pp
|
2001-05-08 14:57:13 +00:00
|
|
|
|
.Bd -ragged -offset indent
|
2003-10-09 19:36:20 +00:00
|
|
|
|
initializes the Kerberos database with entries for a new realm. It's
|
2001-02-13 16:46:19 +00:00
|
|
|
|
possible to have more than one realm served by one server
|
|
|
|
|
.Ed
|
|
|
|
|
.Pp
|
|
|
|
|
.Nm load
|
|
|
|
|
.Ar file
|
|
|
|
|
.Pp
|
2001-05-08 14:57:13 +00:00
|
|
|
|
.Bd -ragged -offset indent
|
2001-02-13 16:46:19 +00:00
|
|
|
|
reads a previously dumped database, and re-creates that database from scratch
|
|
|
|
|
.Ed
|
|
|
|
|
.Pp
|
|
|
|
|
.Nm merge
|
|
|
|
|
.Ar file
|
|
|
|
|
.Pp
|
2001-05-08 14:57:13 +00:00
|
|
|
|
.Bd -ragged -offset indent
|
2002-08-30 21:23:27 +00:00
|
|
|
|
similar to
|
2001-02-13 16:46:19 +00:00
|
|
|
|
.Nm list
|
|
|
|
|
but just modifies the database with the entries in the dump file
|
|
|
|
|
.Ed
|
|
|
|
|
.Pp
|
|
|
|
|
.Ed
|
|
|
|
|
.\".Sh ENVIRONMENT
|
|
|
|
|
.\".Sh FILES
|
|
|
|
|
.\".Sh EXAMPLES
|
|
|
|
|
.\".Sh DIAGNOSTICS
|
|
|
|
|
.Sh SEE ALSO
|
|
|
|
|
.Xr kadmind 8 ,
|
|
|
|
|
.Xr kdc 8
|
|
|
|
|
.\".Sh STANDARDS
|
|
|
|
|
.\".Sh HISTORY
|
|
|
|
|
.\".Sh AUTHORS
|
|
|
|
|
.\".Sh BUGS
|