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().
This commit is contained in:
@@ -76,6 +76,12 @@ command = {
|
||||
type = "flag"
|
||||
help = "decrypt keys"
|
||||
}
|
||||
option = {
|
||||
long = "format"
|
||||
short = "f"
|
||||
type = "string"
|
||||
help = "dump format, mit or heimdal (default: heimdal)"
|
||||
}
|
||||
argument = "[dump-file]"
|
||||
min_args = "0"
|
||||
max_args = "1"
|
||||
|
Reference in New Issue
Block a user