From: Ezra Peisach Date: Sun, 10 Dec 1995 16:22:10 +0000 (+0000) Subject: * kdb5_edit.M: Document that modent exists X-Git-Tag: krb5-1.0-beta6~725 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=b2677f3927f39e7243f12dd130142fcb6e278f2f;p=krb5.git * kdb5_edit.M: Document that modent exists * kdb5_edit.c (modent): Add usage as suggested by jhawk@mit.edu. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7188 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/admin/edit/ChangeLog b/src/admin/edit/ChangeLog index 1c29fb471..e92de018b 100644 --- a/src/admin/edit/ChangeLog +++ b/src/admin/edit/ChangeLog @@ -1,3 +1,9 @@ +Sun Dec 10 11:07:51 1995 Ezra Peisach + + * kdb5_edit.M: Document that modent exists + + * kdb5_edit.c (modent): Add usage as suggested by jhawk@mit.edu. + Thu Nov 09 17:05:57 1995 Chris Provenzano (proven@mit.edu) * kdb5_edit.c : Remove krb5_enctype from krb5_string_to_key() args. diff --git a/src/admin/edit/kdb5_edit.M b/src/admin/edit/kdb5_edit.M index 514fbdabf..3ca7623c7 100644 --- a/src/admin/edit/kdb5_edit.M +++ b/src/admin/edit/kdb5_edit.M @@ -132,6 +132,9 @@ Extract service key table .IP extract_v4_srvtab,xst4 Extract service key table +.IP modify_entry,modent +Modify entry + .IP list_db,ldb List database entries diff --git a/src/admin/edit/kdb5_edit.c b/src/admin/edit/kdb5_edit.c index e4aa968f6..1871d3eb3 100644 --- a/src/admin/edit/kdb5_edit.c +++ b/src/admin/edit/kdb5_edit.c @@ -1245,6 +1245,27 @@ void modent(argc, argv) char *pass, *canon; int one = 1, nprincs = 1, randkey = 0; + if (argc < 3) { + char arg[30]; + int i; + + com_err(argv[0], 0, "Too few arguments"); + com_err(argv[0], 0, "Usage: %s [ -maxlife maxticketlifetime ]", argv[0]); + com_err(argv[0], 0, " [ -expire expiredate ]"); + com_err(argv[0], 0, " [ -pwexpire pwexpiredate ]"); + com_err(argv[0], 0, " [ -pw password ]"); + com_err(argv[0], 0, " [ -randkey ]"); + i=0; + while (!(retval = krb5_input_flag_to_string(i, arg, sizeof(arg)))) { + com_err(argv[0], 0, " [ +%-13s | -%-13s ]", arg, arg); + i++; + } + com_err(argv[0], 0, " principal"); + + exit_status++; + return; + } + retval = krb5_parse_name(edit_context, argv[argc - 1], &kprinc); if (retval) { com_err("modify_principal", retval, "while parsing principal");