Cleanup commands list, and add help strings.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4508 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -75,24 +75,69 @@ static int num_args = sizeof(args) / sizeof(args[0]);
|
|||||||
|
|
||||||
static SL_cmd commands[] = {
|
static SL_cmd commands[] = {
|
||||||
/* commands that are only available with `-l' */
|
/* commands that are only available with `-l' */
|
||||||
{ "dump", dump, "dump [file]"},
|
{
|
||||||
{ "load", load, "load file"},
|
"dump", dump, "dump [file]",
|
||||||
{ "merge", merge, "merge file"},
|
"Dumps the database in a human readable format to the\n"
|
||||||
{ "init", init, "init realm..."},
|
"specified file, or the standard out."
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"load", load, "load file",
|
||||||
|
"Loads a previously dumped file."
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"merge", merge, "merge file" ,
|
||||||
|
"Merges the contents of a dump file into the database."
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"init", init, "init realm...",
|
||||||
|
"Initializes the default principals for a realm.\n"
|
||||||
|
"Creates the database if necessary."
|
||||||
|
},
|
||||||
/* common commands */
|
/* common commands */
|
||||||
{ "add_new_key", add_new_key, "add_new_key principal"},
|
{
|
||||||
|
"add", add_new_key, "add principal" ,
|
||||||
|
"Adds a principal to the database."
|
||||||
|
},
|
||||||
|
{ "add_new_key"},
|
||||||
{ "ank"},
|
{ "ank"},
|
||||||
{ "cpw", cpw_entry, "cpw_entry principal..."},
|
{
|
||||||
|
"passwd", cpw_entry, "passwd expression..." ,
|
||||||
|
"Changes the password of one or more principals\n"
|
||||||
|
"matching the expressions."
|
||||||
|
},
|
||||||
{ "change_password"},
|
{ "change_password"},
|
||||||
{ "passwd"},
|
{ "cpw"},
|
||||||
{ "del_entry", del_entry, "del_entry principal..."},
|
{
|
||||||
{ "delete" },
|
"delete", del_entry, "delete expression...",
|
||||||
{ "ext_keytab", ext_keytab, "ext_keytab principal..."},
|
"Deletes all principals matching the expressions."
|
||||||
{ "get_entry", get_entry, "get_entry principal"},
|
},
|
||||||
{ "rename", rename_entry, "rename source target"},
|
{ "del_entry" },
|
||||||
{ "modify", mod_entry, "modify principal" },
|
{
|
||||||
{ "privileges", get_privs, "privileges" },
|
"ext_keytab", ext_keytab, "ext_keytab expression...",
|
||||||
{ "list_principals",list_princs, "list expression..." },
|
"Extracts the keys of all principals matching the expressions,\n"
|
||||||
|
"and stores them in a keytab."
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"get", get_entry, "get expression...",
|
||||||
|
"Shows information about principals matching the expressions."
|
||||||
|
},
|
||||||
|
{ "get_entry" },
|
||||||
|
{
|
||||||
|
"rename", rename_entry, "rename source target",
|
||||||
|
"Renames `source' to `target'."
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"modify", mod_entry, "modify principal",
|
||||||
|
"Modifies some attributes of the specified principal."
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"privileges", get_privs, "privileges",
|
||||||
|
"Shows which kinds of operations you are allowed to perform."
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"list", list_princs, "list expression...",
|
||||||
|
"Lists principals in a terse format. The same as `get -t'."
|
||||||
|
},
|
||||||
{ "help", help, "help"},
|
{ "help", help, "help"},
|
||||||
{ "?"},
|
{ "?"},
|
||||||
{ "exit", exit_kadmin, "exit"},
|
{ "exit", exit_kadmin, "exit"},
|
||||||
|
Reference in New Issue
Block a user