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."
83 help = "dump format, mit or heimdal (default: heimdal)"
85 argument = "[dump-file]"
88 help = "Dumps the database in a human readable format to the specified file, \nor the standard out. Local (-l) mode only."
94 long = "realm-max-ticket-life"
96 help = "realm max ticket lifetime"
99 long = "realm-max-renewable-life"
101 help = "realm max renewable lifetime"
106 help = "only create krbtgt for realm"
108 argument = "realm..."
110 help = "Initializes the default principals for a realm. Creates the database\nif necessary. Local (-l) mode only."
117 help = "Loads a previously dumped file. Local (-l) mode only."
124 help = "Merges the contents of a dump file into the database. Local (-l) mode only."
130 function = "add_new_key"
135 help = "set random key"
138 long = "random-password"
140 help = "set random password"
146 help = "encryption type(s)"
152 help = "principal's password"
157 help = "DES-key in hex"
160 long = "max-ticket-life"
163 help = "max ticket lifetime"
166 long = "max-renewable-life"
168 argument = "lifetime"
169 help = "max renewable life"
174 argument = "attributes"
175 help = "principal attributes"
178 long = "expiration-time"
181 help = "principal expiration time"
184 long = "pw-expiration-time"
187 help = "password expiration time"
190 long = "hist-kvno-diff-clnt"
192 argument = "kvno diff"
193 help = "historic keys allowed for client"
197 long = "hist-kvno-diff-svc"
199 argument = "kvno diff"
200 help = "historic keys allowed for service"
204 long = "use-defaults"
206 help = "use default values"
214 argument = "principal..."
216 help = "Adds a principal to the database."
221 name = "change_password"
222 function = "cpw_entry"
227 help = "set random key"
230 long = "random-password"
232 help = "set random password"
238 help = "encryption type(s)"
244 help = "principal's password"
249 help = "DES key in hex"
254 help = "keep old keys/password needed to decrypt extant tickets (default)"
259 help = "keep all old keys/password"
264 help = "delete all old keys"
266 argument = "principal..."
268 help = "Changes the password of one or more principals matching the expressions."
274 function = "del_entry"
275 argument = "principal..."
277 help = "Deletes all principals matching the expressions."
281 argument = "principal enctype..."
283 help = "Delete all the mentioned enctypes for principal."
291 help = "set random key"
293 argument = "principal enctype..."
295 help = "Add new enctypes for principal."
303 help = "keytab to use"
310 help = "set random key"
316 help = "encryption type(s)"
321 help = "keep old keys/password needed to decrypt extant tickets (default)"
326 help = "keep all old keys/password"
331 help = "delete all old keys"
333 argument = "principal..."
335 help = "Extracts the keys of all principals matching the expressions, and stores them in a keytab."
340 function = "get_entry"
341 /* Options added to list should be added here; not the reverse */
353 help = "short format"
359 help = "terse format"
365 help = "columns to print for short output"
367 argument = "principal..."
369 help = "Shows information about principals matching the expressions."
373 function = "rename_entry"
377 help = "Renames a principal."
381 function = "mod_entry"
383 long = "max-ticket-life"
386 help = "max ticket lifetime"
389 long = "max-renewable-life"
391 argument = "lifetime"
392 help = "max renewable life"
398 argument = "attributes"
399 help = "principal attributes"
402 long = "expiration-time"
405 help = "principal expiration time"
408 long = "pw-expiration-time"
411 help = "password expiration time"
416 help = "key version number"
420 long = "constrained-delegation"
422 argument = "principal"
423 help = "allowed target principals"
428 argument = "principal"
434 argument = "subject dn"
444 long = "hist-kvno-diff-clnt"
446 argument = "kvno diff"
447 help = "historic keys allowed for client"
451 long = "hist-kvno-diff-svc"
453 argument = "kvno diff"
454 help = "historic keys allowed for service"
457 argument = "principal"
460 help = "Modifies some attributes of the specified principal."
464 argument = "principal"
468 help = "key version number"
473 help = "Delete keys from history by max-ticket-life or kvno."
478 function = "get_privs"
479 help = "Shows which operations you are allowed to perform."
483 function = "list_princs"
484 /* XXX sync options with "get" */
495 help = "short format"
501 help = "terse format"
508 help = "columns to print for short output"
510 argument = "principal..."
512 help = "Lists principals in a terse format. Equivalent to \"get -t\"."
515 name = "verify-password-quality"
517 function = "password_quality"
518 argument = "principal password"
521 help = "Try run the password quality function locally (not doing RPC out to server)."
529 help = "Check the realm (if not given, the default realm) for configuration errors."
537 help = "Lock the database for writing (use with care)."
545 help = "Unlock the database."
550 argument = "[command]"
553 help = "Help! I need somebody."
558 function = "exit_kadmin"