aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRick Macklem <rmacklem@FreeBSD.org>2025-10-05 21:06:26 +0000
committerRick Macklem <rmacklem@FreeBSD.org>2025-10-08 01:51:08 +0000
commit23fbea8cf2f360dd45cb69c98f6f2931fff3721e (patch)
tree13ace14b7024e79e23c655512f7e23e7b5781fdc
parent9fd3b28d4e0d634d82b5233fbd5b1f6c7741141a (diff)
kadmin.8: Document the new dump -f flag
Commit 5000d023a446 added a new flag to the dump option. This patch documents this new flag. This is a content change. Fixes: 5000d023a446 ("heimdal-kadmin: Add support for the -f dump option") (cherry picked from commit 03da141d59ae1da4e66974c466e2cb26f296e6df)
-rw-r--r--crypto/heimdal/kadmin/kadmin.829
1 files changed, 27 insertions, 2 deletions
diff --git a/crypto/heimdal/kadmin/kadmin.8 b/crypto/heimdal/kadmin/kadmin.8
index bd2fd4e7363f..e4555cd529f4 100644
--- a/crypto/heimdal/kadmin/kadmin.8
+++ b/crypto/heimdal/kadmin/kadmin.8
@@ -31,7 +31,7 @@
.\"
.\" $Id$
.\"
-.Dd Feb 22, 2007
+.Dd October 5, 2025
.Dt KADMIN 8
.Os HEIMDAL
.Sh NAME
@@ -286,14 +286,39 @@ When running in local mode, the following commands can also be used:
.Pp
.Nm dump
.Op Fl d | Fl Fl decrypt
+.Op Fl f Ns Ar format | Fl Fl format= Ns Ar format
.Op Ar dump-file
.Bd -ragged -offset indent
Writes the database in
-.Dq human readable
+.Dq machine readable text
form to the specified file, or standard out. If the database is
encrypted, the dump will also have encrypted keys, unless
.Fl Fl decrypt
is used.
+.Pp
+If
+.Fl Fl format=MIT
+is used then the dump will be in MIT format.
+This option may be used if you require that all principal
+passwords be changed after loading the dump into an MIT KDC database.
+.Pp
+If
+.Fl Fl format=<keytab-file>
+is used, the
+.Dq <keytab-file>
+should hold the master key for the
+MIT KDC (usually a file called /var/db/krb5kdc/.k5.YOUR.REALM).
+This will cause the keys to be re-encrypted in the MIT master
+key as well as doing the dump in MIT format.
+When this dump is loaded into the MIT KDC's database,
+the principals that had at least one strong encryption type
+key should work and any keytabs for those principals should still work.
+The principcals with only weak encryption keys will require a
+.Dq change_password
+be done on the MIT KDC to get them working.
+The
+.Fl Fl decrypt
+flag is meaningless for this case.
.Ed
.Pp
.Nm init