From nobody Sun Oct 5 21:09:24 2025 X-Original-To: dev-commits-src-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4cfw511cHHz6BhCS; Sun, 05 Oct 2025 21:09:25 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R12" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4cfw510s7qz45G6; Sun, 05 Oct 2025 21:09:25 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1759698565; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=4vdHtJlY60DB9pk34nnSeXrNQIO7jt6ZdYinu8h002I=; b=UBkv+0ndhtPtXTrKGLbYyZVVF36XlnPiJudW9veJwMEwk87ZOiuxGKvwNEyoUu0JO8oJge 31hzGIdaMBFvSAiVGIibuSiiIsmq23l3lq16OMq89O79b1FNdcWgNQcxNdgvdpGGpoVWoy YwfoSOmXnkeGpMOjxObjGMNzdsOKx1qhZehE+OH+3zd6T1HNv8RlzPjTfrKvZuHCBe3fNz BCeOOCfUr4JyICVBkFoUNcPj2ABKC3c/QAY/4ajiWISO10vwrqPiifI/d7jJiVmJz54Rxt hRgm8lM8b65oAX7/wJJRy+HQgEogasE5V8AmO+7zruZdfzLTxoTAgj4o2QkM+w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1759698565; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=4vdHtJlY60DB9pk34nnSeXrNQIO7jt6ZdYinu8h002I=; b=hzs4NsQ6K4hi6npUviwNRZmTL8zeL3PRapAc3U4ThdXZwtacLxkuIccCyd27rXKeaPtceP 7Nc3124rty6sitfq4bQFYxBHX8qlDy62w9zD351U1/M4vdSckQYt1HNynXX5rwCA3u8G/w xUAMi0XPToGpNSofXrVF6RNL9dLd+pOAZWVRM652G/p8v8Jgp5BhYb7PXfXgwxONHBfQNW R7vbTh9K0lNny3gQ4i4PxsIa97AGhXvAjTdDq/gY5VnueLLmBSZyYbTjw5bNZdTZtes8jh fjK6qUHtEJ1xeUZjdVlmGT5T/VGjFLxxPr+TCMN1+n3VXsc/+1D9nEeldXtd6A== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1759698565; a=rsa-sha256; cv=none; b=uAPaOatZDzZRz8Syg3RHh74UNP8Bwb1QCyHDKfwzmwgy2IIsTaAiVlCjpbDeoakOTb933q vbMYo6dBg3KcBBtrD7EMXpQulIq//AlqLEwgMSJRMFMs2mhDlNn3br4T2gMBPE9jBeIPpk HvFgFHdWsrnUe7Pvx8pSE61PcTW1x66SOnxWvWv+jymz/3pcZTtvVpdUoDQRSUSVPDJNPc fTxJG1CXOvz2G6F1Ueqsop1k/BtJsbHH8wPUMFzSNkw7OZkxit7MjWaLERkaR0syJVCO9F KzSMkUgLaDrXfJMZcFsZThu0uP3rFjezsncIsjZ9zf01Xli7IsJqqNDTKZ5AOA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4cfw510BcfzDM1; Sun, 05 Oct 2025 21:09:25 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 595L9OT8063887; Sun, 5 Oct 2025 21:09:24 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 595L9O2p063884; Sun, 5 Oct 2025 21:09:24 GMT (envelope-from git) Date: Sun, 5 Oct 2025 21:09:24 GMT Message-Id: <202510052109.595L9O2p063884@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Rick Macklem Subject: git: 03da141d59ae - main - kadmin.8: Document the new dump -f flag List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: rmacklem X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 03da141d59ae1da4e66974c466e2cb26f296e6df Auto-Submitted: auto-generated The branch main has been updated by rmacklem: URL: https://cgit.FreeBSD.org/src/commit/?id=03da141d59ae1da4e66974c466e2cb26f296e6df commit 03da141d59ae1da4e66974c466e2cb26f296e6df Author: Rick Macklem AuthorDate: 2025-10-05 21:06:26 +0000 Commit: Rick Macklem CommitDate: 2025-10-05 21:06:26 +0000 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. MFC after: 3 days Fixes: 5000d023a446 ("heimdal-kadmin: Add support for the -f dump option") --- crypto/heimdal/kadmin/kadmin.8 | 29 +++++++++++++++++++++++++++-- 1 file 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= +is used, the +.Dq +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