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 = "master-key-fd"
61 help = "filedescriptor to read passphrase from"
64 help = "Writes the Kerberos master key to a file used by the KDC. \nLocal (-l) mode only."
74 argument = "[dump-file]"
77 help = "Dumps the database in a human readable format to the specified file, \nor the standard out. Local (-l) mode only."
83 long = "realm-max-ticket-life"
85 help = "realm max ticket lifetime"
88 long = "realm-max-renewable-life"
90 help = "realm max renewable lifetime"
94 help = "Initializes the default principals for a realm. Creates the database\nif necessary. Local (-l) mode only."
101 help = "Loads a previously dumped file. Local (-l) mode only."
108 help = "Merges the contents of a dump file into the database. Local (-l) mode only."
114 function = "add_new_key"
119 help = "set random key"
122 long = "random-password"
124 help = "set random password"
130 help = "principal's password"
135 help = "DES-key in hex"
138 long = "max-ticket-life"
141 help = "max ticket lifetime"
144 long = "max-renewable-life"
146 argument = "lifetime"
147 help = "max renewable life"
152 argument = "attributes"
153 help = "principal attributes"
156 long = "expiration-time"
159 help = "principal expiration time"
162 long = "pw-expiration-time"
165 help = "password expiration time"
168 long = "use-defaults"
170 help = "use default values"
172 argument = "principal..."
174 help = "Adds a principal to the database."
179 name = "change_password"
180 function = "cpw_entry"
185 help = "set random key"
188 long = "random-password"
190 help = "set random password"
196 help = "princial's password"
201 help = "DES key in hex"
203 argument = "principal..."
205 help = "Changes the password of one or more principals matching the expressions."
211 function = "del_entry"
212 argument = "principal..."
214 help = "Deletes all principals matching the expressions."
218 argument = "principal enctype..."
220 help = "Delete all the mentioned enctypes for principal."
228 help = "set random key"
230 argument = "principal enctype..."
232 help = "Add new enctypes for principal."
240 help = "keytab to use"
242 argument = "principal..."
244 help = "Extracts the keys of all principals matching the expressions, and stores them in a keytab."
249 function = "get_entry"
250 /* XXX sync options with "list" */
262 help = "short format"
268 help = "terse format"
274 help = "columns to print for short output"
276 argument = "principal..."
278 help = "Shows information about principals matching the expressions."
282 function = "rename_entry"
286 help = "Renames a principal."
290 function = "mod_entry"
292 long = "max-ticket-life"
295 help = "max ticket lifetime"
298 long = "max-renewable-life"
300 argument = "lifetime"
301 help = "max renewable life"
307 argument = "attributes"
308 help = "principal attributes"
311 long = "expiration-time"
314 help = "principal expiration time"
317 long = "pw-expiration-time"
320 help = "password expiration time"
325 help = "key version number"
329 long = "constrained-delegation"
331 argument = "principal"
332 help = "allowed target principals"
337 argument = "principal"
343 argument = "subject dn"
346 argument = "principal"
349 help = "Modifies some attributes of the specified principal."
354 function = "get_privs"
355 help = "Shows which operations you are allowed to perform."
359 function = "list_princs"
360 /* XXX sync options with "get" */
371 help = "short format"
377 help = "terse format"
384 help = "columns to print for short output"
386 argument = "principal..."
388 help = "Lists principals in a terse format. Equivalent to \"get -t\"."
391 name = "verify-password-quality"
393 function = "password_quality"
394 argument = "principal password"
397 help = "Try run the password quality function locally (not doing RPC out to server)."
405 help = "Check the realm (if not given, the default realm) for configuration errors."
410 argument = "[command]"
413 help = "Help! I need somebody."
418 function = "exit_kadmin"