Commit Graph

36 Commits

Author SHA1 Message Date
Love Hörnquist Åstrand
091fba8a25 return 1 on failure, update (c)
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16658 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-01-25 12:29:46 +00:00
Love Hörnquist Åstrand
d12920441b (add_new_key): return 1 on failure.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16654 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-01-25 12:18:41 +00:00
Love Hörnquist Åstrand
192b125577 (add_one_principal): catch error from UI_UTIL_read_pw_string
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14332 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-11-01 08:41:00 +00:00
Johan Danielsson
5836537f76 argument number checks are now done by slc
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14026 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-07-05 11:41:22 +00:00
Johan Danielsson
d970c48c81 print error messages to stderr; change all in-string quoting to use "
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14021 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-07-04 15:09:42 +00:00
Love Hörnquist Åstrand
429fc15b79 fix slc lossage
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14016 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-07-02 13:38:45 +00:00
Johan Danielsson
9929f779ec move kadmin-commands.h from kadmin_locl.h so kadmind does not depend on it
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14000 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-06-27 15:04:07 +00:00
Johan Danielsson
d7f9fac88e convert to use slc; also add stash subcommand
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13970 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-06-21 19:19:45 +00:00
Love Hörnquist Åstrand
5095f7bbc3 (add_one_principal): even though the principal is disabled (creation
of random key/keydata), create it with a random password


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13447 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-03-07 14:31:26 +00:00
Love Hörnquist Åstrand
a0714dedc6 (add_one_principal): pass right argument to kadm5_free_principal_ent
From Panasas, Inc


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13200 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-12-07 19:26:26 +00:00
Love Hörnquist Åstrand
8b66e46474 s/des_read_pw_string/UI_UTIL_read_pw_string/
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12759 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-03 11:47:30 +00:00
Johan Danielsson
4fcac6e9be (add_one_principal): check return value from edit_entry
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11556 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-12-03 14:11:24 +00:00
Johan Danielsson
5807150c8b (add_one_principal): don't continue if create_principal fails
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11555 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-12-03 14:10:30 +00:00
Jacques A. Vidrine
29538a775a Do not attempt to free uninitialized pointer when
kadm5_randkey_principal fails.  This would most likely
be encountered when one does not have change-password
rights, but uses one of the `--random-key' or `--random-password'
options of the ank command.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11036 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-06-07 19:05:38 +00:00
Johan Danielsson
bd603d56fa add a --use-defaults option to just use default values without questions
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10459 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-08-10 08:08:22 +00:00
Johan Danielsson
3e24852f6d calling the command `add' make more sense from an english pov
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9042 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-09-10 19:16:39 +00:00
Assar Westerlund
4bfe69645d add --key
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8052 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-03-23 15:20:43 +00:00
Johan Danielsson
c5b916ca6f remove advertising clause
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7464 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-12-02 17:05:13 +00:00
Assar Westerlund
6f070d95ce (add_one_principal): `password' can cactually be NULL in the overwrite
code, check for it.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7070 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-10-01 15:16:41 +00:00
Assar Westerlund
d3f5d79294 strc{py,at}_truncate -> strlc{py,at}
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6985 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-09-16 21:39:11 +00:00
Assar Westerlund
269432f82f (add_one_principal): initialize `default_ent'
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6863 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-08-24 23:26:17 +00:00
Assar Westerlund
c22bb92415 add support for --random-password
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6853 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-08-21 12:38:58 +00:00
Assar Westerlund
82218a6ea7 add setting of expiration and password expiration
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6846 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-08-19 20:30:44 +00:00
Assar Westerlund
be29622761 (add_one_principal): allow setting expiration times
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6500 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-07-23 22:09:33 +00:00
Assar Westerlund
2faa266a21 make ank use the values of the default principal for prompting
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6352 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-06-23 12:37:05 +00:00
Assar Westerlund
2db8ae77eb (add_new_key): initialize more variables
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6147 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-05-07 19:02:49 +00:00
Assar Westerlund
a6b7e36937 (add_new_key): new options for setting max-ticket-life,
max-renewable-life, and attributes


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6125 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-05-04 18:39:50 +00:00
Johan Danielsson
aaae186ab9 merge new-crypto branch
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5332 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-02-11 21:03:59 +00:00
Assar Westerlund
fc1956b05f new arg_printusage
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5130 ec53bebd-3082-4978-b11e-865c3cabbd6b
1998-08-18 21:17:01 +00:00
Assar Westerlund
e9d0112abf (ank): don't zero password if --random-key was given.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4241 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-12-25 16:02:34 +00:00
Assar Westerlund
9c2a129e37 (add_new_key): test the return value of `krb5_parse_name'
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4214 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-12-17 03:17:53 +00:00
Johan Danielsson
dede654dd9 Set initial kvno to 1.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4095 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-12-04 03:57:39 +00:00
Johan Danielsson
db481f8bed Free keys.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4029 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-11-16 10:53:25 +00:00
Johan Danielsson
297c5c606b Implement setting some more values.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3936 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-11-11 20:39:13 +00:00
Johan Danielsson
af364bca96 less leaks
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3833 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-11-09 01:18:20 +00:00
Johan Danielsson
a9f1581a4c Simple kadmin utility.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3738 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-11-01 02:53:06 +00:00