freebsd-skq/crypto/heimdal/kadmin/kadmin.8

415 lines
9.3 KiB
Groff
Raw Normal View History

2008-05-07 13:39:42 +00:00
.\" Copyright (c) 2000 - 2007 Kungliga Tekniska H<>gskolan
.\" (Royal Institute of Technology, Stockholm, Sweden).
.\" All rights reserved.
2003-10-09 19:36:20 +00:00
.\"
2008-05-07 13:39:42 +00:00
.\" Redistribution and use in source and binary forms, with or without
.\" modification, are permitted provided that the following conditions
.\" are met:
2003-10-09 19:36:20 +00:00
.\"
2008-05-07 13:39:42 +00:00
.\" 1. Redistributions of source code must retain the above copyright
.\" notice, this list of conditions and the following disclaimer.
2003-10-09 19:36:20 +00:00
.\"
2008-05-07 13:39:42 +00:00
.\" 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.
2003-10-09 19:36:20 +00:00
.\"
2008-05-07 13:39:42 +00:00
.\" 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.
2003-10-09 19:36:20 +00:00
.\"
2008-05-07 13:39:42 +00:00
.\" 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.
2001-02-13 16:46:19 +00:00
.\"
2008-05-07 13:39:42 +00:00
.\" $Id: kadmin.8 21739 2007-07-31 15:55:32Z lha $
.\"
.Dd Feb 22, 2007
2001-02-13 16:46:19 +00:00
.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
2008-05-07 13:39:42 +00:00
.Bk -words
2001-02-13 16:46:19 +00:00
.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
2008-05-07 13:39:42 +00:00
.Ek
2001-02-13 16:46:19 +00:00
.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
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
.Fl p Ar string ,
2001-02-13 16:46:19 +00:00
.Fl -principal= Ns Ar string
.Xc
principal to authenticate as
.It Xo
.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
.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
.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
.Fl r Ar realm ,
2001-02-13 16:46:19 +00:00
.Fl -realm= Ns Ar realm
.Xc
realm to use
.It Xo
.Fl a Ar host ,
2001-02-13 16:46:19 +00:00
.Fl -admin-server= Ns Ar host
.Xc
server to contact
.It Xo
.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
.Fl l ,
2001-02-13 16:46:19 +00:00
.Fl -local
.Xc
local admin mode
.El
.Pp
If no
2001-02-13 16:46:19 +00:00
.Ar command
is given on the command line,
.Nm
2008-05-07 13:39:42 +00:00
will prompt for commands to process. Some of the commands that take
one or more principals as argument
.Ns ( Nm delete ,
.Nm ext_keytab ,
.Nm get ,
.Nm modify ,
and
.Nm passwd )
will accept a glob style wildcard, and perform the operation on all
matching principals.
.Pp
Commands include:
.\" 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
2008-05-07 13:39:42 +00:00
Adds a new principal to the database. The options not passed on the
command line will be promped for.
2001-02-13 16:46:19 +00:00
.Ed
.Pp
2008-05-07 13:39:42 +00:00
.Nm add_enctype
2001-02-13 16:46:19 +00:00
.Op Fl r | Fl -random-key
2008-05-07 13:39:42 +00:00
.Ar principal enctypes...
2001-02-13 16:46:19 +00:00
.Pp
2001-05-08 14:57:13 +00:00
.Bd -ragged -offset indent
2008-05-07 13:39:42 +00:00
Adds a new encryption type to the principal, only random key are
supported.
2001-02-13 16:46:19 +00:00
.Ed
.Pp
.Nm delete
.Ar principal...
.Pp
2001-05-08 14:57:13 +00:00
.Bd -ragged -offset indent
2008-05-07 13:39:42 +00:00
Removes a principal.
2001-02-13 16:46:19 +00:00
.Ed
.Pp
.Nm del_enctype
.Ar principal enctypes...
.Pp
2001-05-08 14:57:13 +00:00
.Bd -ragged -offset indent
2008-05-07 13:39:42 +00:00
Removes some enctypes from a principal; this can be useful if the
service belonging to the principal is known to not handle certain
enctypes.
2001-02-13 16:46:19 +00:00
.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
2008-05-07 13:39:42 +00:00
Creates a keytab with the keys of the specified principals.
2001-02-13 16:46:19 +00:00
.Ed
.Pp
.Nm get
.Op Fl l | Fl -long
.Op Fl s | Fl -short
.Op Fl t | Fl -terse
2008-05-07 13:39:42 +00:00
.Op Fl o Ar string | Fl -column-info= Ns Ar string
.Ar principal...
2001-02-13 16:46:19 +00:00
.Pp
2001-05-08 14:57:13 +00:00
.Bd -ragged -offset indent
2008-05-07 13:39:42 +00:00
Lists the matching principals, short prints the result as a table,
while long format produces a more verbose output. Which columns to
print can be selected with the
.Fl o
option. The argument is a comma separated list of column names
optionally appended with an equal sign
.Pq Sq =
and a column header. Which columns are printed by default differ
slightly between short and long output.
2001-02-13 16:46:19 +00:00
.Pp
2008-05-07 13:39:42 +00:00
The default terse output format is similar to
.Fl s o Ar principal= ,
just printing the names of matched principals.
2001-02-13 16:46:19 +00:00
.Pp
2008-05-07 13:39:42 +00:00
Possible column names include:
.Li principal ,
.Li princ_expire_time ,
.Li pw_expiration ,
.Li last_pwd_change ,
.Li max_life ,
.Li max_rlife ,
.Li mod_time ,
.Li mod_name ,
.Li attributes ,
.Li kvno ,
.Li mkvno ,
.Li last_success ,
.Li last_failed ,
.Li fail_auth_count ,
.Li policy ,
and
.Li keytypes .
2001-02-13 16:46:19 +00:00
.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
2008-05-07 13:39:42 +00:00
.Ar principal...
.Pp
.Bd -ragged -offset indent
Modifies certain attributes of a principal. If run without command
line options, you will be prompted. With command line options, it will
only change the ones specified.
.Pp
Possible attributes are:
.Li new-princ ,
.Li support-desmd5 ,
.Li pwchange-service ,
.Li disallow-svr ,
.Li requires-pw-change ,
.Li requires-hw-auth ,
.Li requires-pre-auth ,
.Li disallow-all-tix ,
.Li disallow-dup-skey ,
.Li disallow-proxiable ,
.Li disallow-renewable ,
.Li disallow-tgt-based ,
.Li disallow-forwardable ,
.Li disallow-postdated
.Pp
Attributes may be negated with a "-", e.g.,
.Pp
kadmin -l modify -a -disallow-proxiable user
.Ed
.Pp
.Nm passwd
.Op Fl r | Fl -random-key
.Op Fl -random-password
.Oo Fl p Ar string \*(Ba Xo
.Fl -password= Ns Ar string
.Xc
.Oc
.Op Fl -key= Ns Ar string
.Ar principal...
.Pp
.Bd -ragged -offset indent
Changes the password of an existing principal.
.Ed
.Pp
.Nm password-quality
2001-02-13 16:46:19 +00:00
.Ar principal
2008-05-07 13:39:42 +00:00
.Ar password
2001-02-13 16:46:19 +00:00
.Pp
2001-05-08 14:57:13 +00:00
.Bd -ragged -offset indent
2008-05-07 13:39:42 +00:00
Run the password quality check function locally.
You can run this on the host that is configured to run the kadmind
process to verify that your configuration file is correct.
The verification is done locally, if kadmin is run in remote mode,
no rpc call is done to the server.
2001-02-13 16:46:19 +00:00
.Ed
.Pp
.Nm privileges
.Pp
2001-05-08 14:57:13 +00:00
.Bd -ragged -offset indent
2008-05-07 13:39:42 +00:00
Lists the operations you are allowed to perform. These include
.Li add ,
.Li add_enctype ,
.Li change-password ,
.Li delete ,
.Li del_enctype ,
.Li get ,
.Li list ,
and
.Li modify .
.Ed
.Pp
.Nm rename
.Ar from to
.Pp
.Bd -ragged -offset indent
Renames a principal. This is normally transparent, but since keys are
salted with the principal name, they will have a non-standard salt,
and clients which are unable to cope with this will fail. Kerberos 4
suffers from this.
.Ed
.Pp
.Nm check
.Op Ar realm
.Pp
.Bd -ragged -offset indent
Check database for strange configurations on important principals. If
no realm is given, the default realm is used.
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
2008-05-07 13:39:42 +00:00
Writes the database in
2001-02-13 16:46:19 +00:00
.Dq human readable
2008-05-07 13:39:42 +00:00
form to the specified file, or standard out. If the database is
encrypted, the dump will also have encrypted keys, unless
.Fl -decrypt
is used.
2001-02-13 16:46:19 +00:00
.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
2008-05-07 13:39:42 +00:00
Initializes the Kerberos database with entries for a new realm. It's
possible to have more than one realm served by one server.
2001-02-13 16:46:19 +00:00
.Ed
.Pp
.Nm load
.Ar file
.Pp
2001-05-08 14:57:13 +00:00
.Bd -ragged -offset indent
2008-05-07 13:39:42 +00:00
Reads a previously dumped database, and re-creates that database from
scratch.
2001-02-13 16:46:19 +00:00
.Ed
.Pp
.Nm merge
.Ar file
.Pp
2001-05-08 14:57:13 +00:00
.Bd -ragged -offset indent
2008-05-07 13:39:42 +00:00
Similar to
.Nm load
but just modifies the database with the entries in the dump file.
.Ed
.Pp
.Nm stash
.Oo Fl e Ar enctype \*(Ba Xo
.Fl -enctype= Ns Ar enctype
.Xc
.Oc
.Oo Fl k Ar keyfile \*(Ba Xo
.Fl -key-file= Ns Ar keyfile
.Xc
.Oc
.Op Fl -convert-file
.Op Fl -master-key-fd= Ns Ar fd
.Pp
.Bd -ragged -offset indent
Writes the Kerberos master key to a file used by the KDC.
2001-02-13 16:46:19 +00:00
.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