1 .\" Copyright (c) 2000 - 2007 Kungliga Tekniska Högskolan
2 .\" (Royal Institute of Technology, Stockholm, Sweden).
3 .\" All rights reserved.
5 .\" Redistribution and use in source and binary forms, with or without
6 .\" modification, are permitted provided that the following conditions
9 .\" 1. Redistributions of source code must retain the above copyright
10 .\" notice, this list of conditions and the following disclaimer.
12 .\" 2. Redistributions in binary form must reproduce the above copyright
13 .\" notice, this list of conditions and the following disclaimer in the
14 .\" documentation and/or other materials provided with the distribution.
16 .\" 3. Neither the name of the Institute nor the names of its contributors
17 .\" may be used to endorse or promote products derived from this software
18 .\" without specific prior written permission.
20 .\" THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND
21 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
23 .\" ARE DISCLAIMED. IN NO EVENT SHALL THE INSTITUTE OR CONTRIBUTORS BE LIABLE
24 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
26 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
39 .Nd Kerberos administration utility
43 .Op Fl p Ar string \*(Ba Fl -principal= Ns Ar string
44 .Op Fl K Ar string \*(Ba Fl -keytab= Ns Ar string
45 .Op Fl c Ar file \*(Ba Fl -config-file= Ns Ar file
46 .Op Fl k Ar file \*(Ba Fl -key-file= Ns Ar file
47 .Op Fl r Ar realm \*(Ba Fl -realm= Ns Ar realm
48 .Op Fl a Ar host \*(Ba Fl -admin-server= Ns Ar host
49 .Op Fl s Ar port number \*(Ba Fl -server-port= Ns Ar port number
52 .Op Fl v | Fl -version
58 program is used to make modifications to the Kerberos database, either remotely via the
60 daemon, or locally (with the
66 .It Fl p Ar string , Fl -principal= Ns Ar string
67 principal to authenticate as
68 .It Fl K Ar string , Fl -keytab= Ns Ar string
69 keytab for authentication principal
70 .It Fl c Ar file , Fl -config-file= Ns Ar file
71 location of config file
72 .It Fl k Ar file , Fl -key-file= Ns Ar file
73 location of master key file
74 .It Fl r Ar realm , Fl -realm= Ns Ar realm
76 .It Fl a Ar host , Fl -admin-server= Ns Ar host
78 .It Fl s Ar port number , Fl -server-port= Ns Ar port number
86 is given on the command line,
88 will prompt for commands to process. Some of the commands that take
89 one or more principals as argument
96 will accept a glob style wildcard, and perform the operation on all
100 .\" not using a list here, since groff apparently gets confused
101 .\" with nested Xo/Xc
104 .Op Fl r | Fl -random-key
105 .Op Fl -random-password
106 .Op Fl p Ar string \*(Ba Fl -password= Ns Ar string
107 .Op Fl -key= Ns Ar string
108 .Op Fl -max-ticket-life= Ns Ar lifetime
109 .Op Fl -max-renewable-life= Ns Ar lifetime
110 .Op Fl -attributes= Ns Ar attributes
111 .Op Fl -expiration-time= Ns Ar time
112 .Op Fl -pw-expiration-time= Ns Ar time
114 .Bd -ragged -offset indent
115 Adds a new principal to the database. The options not passed on the
116 command line will be promped for.
120 .Op Fl r | Fl -random-key
121 .Ar principal enctypes...
123 .Bd -ragged -offset indent
124 Adds a new encryption type to the principal, only random key are
130 .Bd -ragged -offset indent
135 .Ar principal enctypes...
136 .Bd -ragged -offset indent
137 Removes some enctypes from a principal; this can be useful if the
138 service belonging to the principal is known to not handle certain
143 .Oo Fl k Ar string \*(Ba Xo
144 .Fl -keytab= Ns Ar string
148 .Bd -ragged -offset indent
149 Creates a keytab with the keys of the specified principals.
156 .Op Fl o Ar string | Fl -column-info= Ns Ar string
158 .Bd -ragged -offset indent
159 Lists the matching principals, short prints the result as a table,
160 while long format produces a more verbose output. Which columns to
161 print can be selected with the
163 option. The argument is a comma separated list of column names
164 optionally appended with an equal sign
166 and a column header. Which columns are printed by default differ
167 slightly between short and long output.
169 The default terse output format is similar to
170 .Fl s o Ar principal= ,
171 just printing the names of matched principals.
173 Possible column names include:
175 .Li princ_expire_time ,
177 .Li last_pwd_change ,
187 .Li fail_auth_count ,
194 .Oo Fl a Ar attributes \*(Ba Xo
195 .Fl -attributes= Ns Ar attributes
198 .Op Fl -max-ticket-life= Ns Ar lifetime
199 .Op Fl -max-renewable-life= Ns Ar lifetime
200 .Op Fl -expiration-time= Ns Ar time
201 .Op Fl -pw-expiration-time= Ns Ar time
202 .Op Fl -kvno= Ns Ar number
204 .Bd -ragged -offset indent
205 Modifies certain attributes of a principal. If run without command
206 line options, you will be prompted. With command line options, it will
207 only change the ones specified.
209 Possible attributes are:
212 .Li pwchange-service ,
214 .Li requires-pw-change ,
215 .Li requires-hw-auth ,
216 .Li requires-pre-auth ,
217 .Li disallow-all-tix ,
218 .Li disallow-dup-skey ,
219 .Li disallow-proxiable ,
220 .Li disallow-renewable ,
221 .Li disallow-tgt-based ,
222 .Li disallow-forwardable ,
223 .Li disallow-postdated
225 Attributes may be negated with a "-", e.g.,
227 kadmin -l modify -a -disallow-proxiable user
231 .Op Fl r | Fl -random-key
232 .Op Fl -random-password
233 .Oo Fl p Ar string \*(Ba Xo
234 .Fl -password= Ns Ar string
237 .Op Fl -key= Ns Ar string
239 .Bd -ragged -offset indent
240 Changes the password of an existing principal.
246 .Bd -ragged -offset indent
247 Run the password quality check function locally.
248 You can run this on the host that is configured to run the kadmind
249 process to verify that your configuration file is correct.
250 The verification is done locally, if kadmin is run in remote mode,
251 no rpc call is done to the server.
255 .Bd -ragged -offset indent
256 Lists the operations you are allowed to perform. These include
259 .Li change-password ,
270 .Bd -ragged -offset indent
271 Renames a principal. This is normally transparent, but since keys are
272 salted with the principal name, they will have a non-standard salt,
273 and clients which are unable to cope with this will fail. Kerberos 4
280 .Bd -ragged -offset indent
281 Check database for strange configurations on important principals. If
282 no realm is given, the default realm is used.
285 When running in local mode, the following commands can also be used:
288 .Op Fl d | Fl -decrypt
290 .Bd -ragged -offset indent
291 Writes the database in
293 form to the specified file, or standard out. If the database is
294 encrypted, the dump will also have encrypted keys, unless
300 .Op Fl -realm-max-ticket-life= Ns Ar string
301 .Op Fl -realm-max-renewable-life= Ns Ar string
303 .Bd -ragged -offset indent
304 Initializes the Kerberos database with entries for a new realm. It's
305 possible to have more than one realm served by one server.
310 .Bd -ragged -offset indent
311 Reads a previously dumped database, and re-creates that database from
317 .Bd -ragged -offset indent
320 but just modifies the database with the entries in the dump file.
324 .Oo Fl e Ar enctype \*(Ba Xo
325 .Fl -enctype= Ns Ar enctype
328 .Oo Fl k Ar keyfile \*(Ba Xo
329 .Fl -key-file= Ns Ar keyfile
333 .Op Fl -master-key-fd= Ns Ar fd
334 .Bd -ragged -offset indent
335 Writes the Kerberos master key to a file used by the KDC.