2 * Copyright (c) 2004 - 2007 Kungliga Tekniska Högskolan
3 * (Royal Institute of Technology, Stockholm, Sweden).
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
10 * 1. Redistributions of source code must retain the above copyright
11 * notice, this list of conditions and the following disclaimer.
13 * 2. Redistributions in binary form must reproduce the above copyright
14 * notice, this list of conditions and the following disclaimer in the
15 * documentation and/or other materials provided with the distribution.
17 * 3. Neither the name of the Institute nor the names of its contributors
18 * may be used to endorse or promote products derived from this software
19 * without specific prior written permission.
21 * THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND
22 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
23 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
24 * ARE DISCLAIMED. IN NO EVENT SHALL THE INSTITUTE OR CONTRIBUTORS BE LIABLE
25 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
42 help = "encryption type"
43 default = "des3-cbc-sha1"
50 help = "master key file"
55 help = "just convert keyfile to new format"
58 long = "random-password"
60 help = "use a random password (and print the password to stdout)"
63 long = "master-key-fd"
66 help = "filedescriptor to read passphrase from"
69 help = "Writes the Kerberos master key to a file used by the KDC. \nLocal (-l) mode only."
79 argument = "[dump-file]"
82 help = "Dumps the database in a human readable format to the specified file, \nor the standard out. Local (-l) mode only."
88 long = "realm-max-ticket-life"
90 help = "realm max ticket lifetime"
93 long = "realm-max-renewable-life"
95 help = "realm max renewable lifetime"
100 help = "only create krbtgt for realm"
102 argument = "realm..."
104 help = "Initializes the default principals for a realm. Creates the database\nif necessary. Local (-l) mode only."
111 help = "Loads a previously dumped file. Local (-l) mode only."
118 help = "Merges the contents of a dump file into the database. Local (-l) mode only."
124 function = "add_new_key"
129 help = "set random key"
132 long = "random-password"
134 help = "set random password"
140 help = "principal's password"
145 help = "DES-key in hex"
148 long = "max-ticket-life"
151 help = "max ticket lifetime"
154 long = "max-renewable-life"
156 argument = "lifetime"
157 help = "max renewable life"
162 argument = "attributes"
163 help = "principal attributes"
166 long = "expiration-time"
169 help = "principal expiration time"
172 long = "pw-expiration-time"
175 help = "password expiration time"
178 long = "hist-kvno-diff-clnt"
180 argument = "kvno diff"
181 help = "historic keys allowed for client"
185 long = "hist-kvno-diff-svc"
187 argument = "kvno diff"
188 help = "historic keys allowed for service"
192 long = "use-defaults"
194 help = "use default values"
202 argument = "principal..."
204 help = "Adds a principal to the database."
209 name = "change_password"
210 function = "cpw_entry"
215 help = "set random key"
218 long = "random-password"
220 help = "set random password"
226 help = "princial's password"
231 help = "DES key in hex"
236 help = "keep old keys/password"
238 argument = "principal..."
240 help = "Changes the password of one or more principals matching the expressions."
246 function = "del_entry"
247 argument = "principal..."
249 help = "Deletes all principals matching the expressions."
253 argument = "principal enctype..."
255 help = "Delete all the mentioned enctypes for principal."
263 help = "set random key"
265 argument = "principal enctype..."
267 help = "Add new enctypes for principal."
275 help = "keytab to use"
277 argument = "principal..."
279 help = "Extracts the keys of all principals matching the expressions, and stores them in a keytab."
284 function = "get_entry"
285 /* XXX sync options with "list" */
297 help = "short format"
303 help = "terse format"
309 help = "columns to print for short output"
311 argument = "principal..."
313 help = "Shows information about principals matching the expressions."
317 function = "rename_entry"
321 help = "Renames a principal."
325 function = "mod_entry"
327 long = "max-ticket-life"
330 help = "max ticket lifetime"
333 long = "max-renewable-life"
335 argument = "lifetime"
336 help = "max renewable life"
342 argument = "attributes"
343 help = "principal attributes"
346 long = "expiration-time"
349 help = "principal expiration time"
352 long = "pw-expiration-time"
355 help = "password expiration time"
360 help = "key version number"
364 long = "constrained-delegation"
366 argument = "principal"
367 help = "allowed target principals"
372 argument = "principal"
378 argument = "subject dn"
388 long = "hist-kvno-diff-clnt"
390 argument = "kvno diff"
391 help = "historic keys allowed for client"
395 long = "hist-kvno-diff-svc"
397 argument = "kvno diff"
398 help = "historic keys allowed for service"
401 argument = "principal"
404 help = "Modifies some attributes of the specified principal."
409 function = "get_privs"
410 help = "Shows which operations you are allowed to perform."
414 function = "list_princs"
415 /* XXX sync options with "get" */
426 help = "short format"
432 help = "terse format"
439 help = "columns to print for short output"
441 argument = "principal..."
443 help = "Lists principals in a terse format. Equivalent to \"get -t\"."
446 name = "verify-password-quality"
448 function = "password_quality"
449 argument = "principal password"
452 help = "Try run the password quality function locally (not doing RPC out to server)."
460 help = "Check the realm (if not given, the default realm) for configuration errors."
468 help = "Lock the database for writing (use with care)."
476 help = "Unlock the database."
481 argument = "[command]"
484 help = "Help! I need somebody."
489 function = "exit_kadmin"