57f1545a46
Add support for writing to KDB and dumping HDB to MIT KDB dump format
...
Before this change Heimdal could read KDBs. Now it can write to
them too.
Heimdal can now also dump HDBs (including KDBs) in MIT format, which
can then be imported with kdb5_util load.
This is intended to help in migrations from MIT to Heimdal by
allowing migrations from Heimdal to MIT so that it is possible
to rollback from Heimdal to MIT should there be any issues. The
idea is to allow a) running Heimdal kdc/kadmind with a KDB, or
b) running Heimdal with an HDB converted from a KDB and then
rollback by dumping the HDB and loading a KDB.
Note that not all TL data types are supported, only two: last
password change and modify-by. This is the minimum necessary.
PKINIT users may need to add support for KRB5_TL_USER_CERTIFICATE,
and for databases with K/M history we may need to add KRB5_TL_MKVNO
support.
Support for additional TL data types can be added in
lib/hdb/hdb-mitdb.c:_hdb_mdb_value2entry() and
lib/hdb/print.c:entry2mit_string_int().
2012-05-03 14:24:18 -05:00
433b1d5073
drop RCSID
2010-03-16 12:52:58 -07:00
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
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
bd913bb529
(dump): handle errors
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14518 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-01-19 17:09:56 +00:00
cf22688e0c
check for local mode
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14008 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-06-27 17:33:33 +00:00
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
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
0540f13b86
prefix all struct HDB elements with hdb_
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12880 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-19 00:25:35 +00:00
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
2bf592e96f
use hdb_print_entry
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6102 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-05-03 17:17:07 +00:00
3742083f3f
(append_hex): cast in isalnum to get rid of stupid warning
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5549 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-03-16 13:29:34 +00:00
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
1631faa3fb
Dump etypes.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4726 ec53bebd-3082-4978-b11e-865c3cabbd6b
1998-04-05 05:47:47 +00:00
c04bd9a0b1
static
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4269 ec53bebd-3082-4978-b11e-865c3cabbd6b
1998-01-04 18:36:44 +00:00
fc3c776c5b
Incorporate into kadmin.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4033 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-11-16 11:00:53 +00:00
de9a9a1aeb
static-ize
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3742 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-11-02 03:54:27 +00:00
ae31038985
adapt to new hdb interface
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3628 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-10-16 04:14:00 +00:00
53f897d164
new salt format
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3319 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-08-31 19:35:37 +00:00
cb05818725
renamed flags2int -> HDBFlags2int
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3242 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-08-28 23:16:46 +00:00
b41615b693
parameter fix to `flags2int'
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3231 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-08-28 22:09:24 +00:00
7e5b83322c
removed unused stuff.
...
use krb5_{warn,err}*
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3193 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-08-27 23:19:09 +00:00
9d0e388c6f
Use hdb_foreach.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@2819 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-08-08 22:11:10 +00:00
b5b6216a77
Zero string.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@2627 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-07-25 15:29:12 +00:00
35e0d02c87
Add comment about current dump format.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@2538 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-07-23 05:13:13 +00:00
d7b3b9e7c2
Include salt in dump.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@2533 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-07-23 02:22:20 +00:00
22851e9533
Mostly updated for new db-format.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@2524 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-07-23 02:11:55 +00:00
14c550fe26
updated to new sl
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@2429 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-07-18 01:06:08 +00:00
5a32a5c8e7
Add copyright notice.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@2389 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-07-16 21:40:05 +00:00
db74919cc6
Correct length.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@2246 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-07-13 03:34:05 +00:00
98dd9c4f85
Free some memory. Close DB.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@2244 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-07-13 03:11:58 +00:00
44826fcb13
Replace contents with keyvalue.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1897 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-06-10 15:17:44 +00:00
7d955a6940
Merge to one program.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1812 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-06-01 21:14:56 +00:00
4115edc69c
use admin_locl.h
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1566 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-04-13 22:10:36 +00:00
93320c9ecf
Database dump program.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1395 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-03-14 01:57:35 +00:00