Nicolas Williams
e23a1efdc9
Fixes for updates of KADM5_KVNO but not KEY_DATA and vice-versa.
...
It turns out that updates of kvno but not key data and vice-versa are
both, allowed and actually done (e.g, in kadmin's ank). Doing the right
thing in these cases turns out to be a bit tricky, but this commit ought
to do it.
2011-07-22 16:07:10 -05:00
Nicolas Williams
c2ec368c36
Add HDB extension for storing policy regarding what historic keys may be used for
2011-07-22 16:06:00 -05:00
Love Hornquist Astrand
0879b9831a
remove trailing whitespace
2011-05-21 11:57:31 -07:00
Love Hornquist Astrand
2bcacbd052
patch from Christos Zoulas
2011-04-23 18:27:35 -07:00
Russ Allbery
ce438f343c
Fix error reporting prefix for kadmin list
...
Pass the function name into foreach_principal instead of the static
"get" string, so the correct function is reported in errors in
kadmin list.
Signed-off-by: Love Hornquist Astrand <lha@h5l.org >
2010-09-01 22:59:30 -07:00
Russ Allbery
890c797f68
Don't retrieve principal data for kadmin list
...
kadmin list and kadmin get -t used the same output display logic
as short output, which meant that they called kadm5_get_principal
for each principal. However, they then just threw that output
away since the terse format displays only the principal name.
For terse get output, instead use a separate set of functions that
just print the string version of the principal name and do not
retrieve additional information.
Signed-off-by: Love Hornquist Astrand <lha@h5l.org >
2010-09-01 22:59:12 -07:00
Love Hornquist Astrand
433b1d5073
drop RCSID
2010-03-16 12:52:58 -07:00
Russ Allbery
d5970c0851
Report mkvno as unknown
...
When the principal is retrieved from the database via libkadm5srv, the
keys are always decrypted, so the reported mkvno is always 0. Rather
than returning 0 and implying that the key in the database is not
encrypted, report the mkvno as unknown for right now.
A better fix is required to either not decrypt the keys when retrieving
get information or to get the mkvno before keys are decrypted.
Signed-off-by: Love Hornquist Astrand <lha@h5l.org >
2010-02-02 19:36:20 -08:00
Love Hörnquist Åstrand
6937d41a02
remove trailing whitespace
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23815 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-09-13 09:21:03 +00:00
Love Hörnquist Åstrand
e172367898
switch to utf8 encoding of all files
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23814 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-09-13 08:53:55 +00:00
Love Hörnquist Åstrand
8d40c2994b
check return value of alloc functions, from Charles Longeau
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21745 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-07-31 16:11:25 +00:00
Love Hörnquist Åstrand
ea6db777a0
add setting and displaying aliases
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20239 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-02-17 00:00:41 +00:00
Love Hörnquist Åstrand
c86020bf6d
(format_field): optionally print issuer and anchor.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17833 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-07-14 02:31:30 +00:00
Love Hörnquist Åstrand
652da91adb
Rename u_intXX_t to uintXX_t
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17447 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-05-05 10:52:01 +00:00
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
a4ef0411e1
Add printing of pkinit-acls. Don't print password by default. Return 1
...
on failure processing any of the principals.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16653 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-01-25 12:16:00 +00:00
Love Hörnquist Åstrand
abf82fc886
Remove structure that is never used (sneaked in the large TL_DATA patch).
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15910 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-08-11 20:48:30 +00:00
Love Hörnquist Åstrand
a76cd62f8b
Indent.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15907 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-08-11 20:33:57 +00:00
Love Hörnquist Åstrand
0de0d9727e
Extend struct field_name to have a subvalue and a extra_mask. Use
...
that to implement printing of KADM5_TL_DATA options and fix a
dependency bug (keys needed principal to print the salting).
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15890 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-08-11 13:44:34 +00:00
Love Hörnquist Åstrand
5ce5bb68b5
(getit): init data.mask to 0.
...
Problem found by Andrew Abartlet <abartlet@samba.org >
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15310 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-05-30 20:41:17 +00:00
Love Hörnquist Åstrand
b4e6b5dc46
(getit): always free columns
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14334 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-11-01 16:54:53 +00:00
Love Hörnquist Åstrand
d7c3e29589
print keytypes on long format
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14117 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-08-13 14:05:33 +00:00
Love Hörnquist Åstrand
d6e16be502
(format_field): allow mod_name to be optional
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14030 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-07-06 04:26:17 +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
Johan Danielsson
74c605506c
implement output column selection, similar to ps -o
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14002 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-06-27 15:13:36 +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
5640b8bb3d
(print_entry_terse): handle error when unparsing name
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12607 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-08-21 14:23:25 +00:00
Assar Westerlund
8d186e2484
(getit): new foreach_principal
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9854 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-05-07 05:31:43 +00:00
Johan Danielsson
cedb41f6fc
avoid asprintf'ing NULL strings
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9394 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-12-15 14:24:24 +00:00
Johan Danielsson
ebc19dc219
don't try to print modifier name if it isn't set
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9147 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-11-08 23:26:41 +00:00
Assar Westerlund
f2337ccf1e
(print_entry_long): actually print the actual saltvalue used if it's
...
not the default
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9061 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-09-19 12:11:35 +00:00
Johan Danielsson
47b95f3233
make get' and
list' aliases to each other, but with different
...
defaults
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9043 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-09-10 19:18:37 +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
7c846975b0
update with new names of functions in util
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6847 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-08-19 20:32:05 +00:00
Assar Westerlund
0b54ed61fe
(print_entry_long): print the keytypes and salts available for the
...
principal
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5363 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-02-15 21:01:42 +00:00
Assar Westerlund
2d1323df4b
*** empty log message ***
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5129 ec53bebd-3082-4978-b11e-865c3cabbd6b
1998-08-18 21:11:34 +00:00
Johan Danielsson
b404d83805
Use `foreach_principal'. Add long, short, and terse (equivalent to
...
`list') output formats. Short is the default.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4503 ec53bebd-3082-4978-b11e-865c3cabbd6b
1998-03-01 04:08:18 +00:00
Johan Danielsson
bbd95df4f6
Move stuff to util.c
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3935 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-11-11 20:37:57 +00:00
Johan Danielsson
16529471c1
Fix principal formatting.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3790 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-11-05 23:33:58 +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