From nobody Wed Aug 27 13:16:02 2025 X-Original-To: freebsd-current@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 4cBlRC5PqYz66HC0 for ; Wed, 27 Aug 2025 13:16:23 +0000 (UTC) (envelope-from rick.macklem@gmail.com) Received: from mail-ed1-x529.google.com (mail-ed1-x529.google.com [IPv6:2a00:1450:4864:20::529]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "WR4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4cBlRB5Qv5z3sSv; Wed, 27 Aug 2025 13:16:22 +0000 (UTC) (envelope-from rick.macklem@gmail.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-ed1-x529.google.com with SMTP id 4fb4d7f45d1cf-6188b5ad681so9322064a12.0; Wed, 27 Aug 2025 06:16:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1756300576; x=1756905376; darn=freebsd.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=iewKlvedgyomt9b7XwostDxxQdxTkvL2z9S97jOd5BA=; b=mWuDPL8bRxDJnuM/2owzrx/5vImnQXaUSDcEuRRFa8tRRv+ltOwBVt27RqxkTcp6uG ftU7iKz3YrYgp7IFm9wovA6lVuBd5TFuAM50LvslNSiAKdgDUhP0Fls+jg28jdrNhYU3 QwZ3WF9cchSg+IBygogL+mTefGWGnR+I63THsQ4WmKPjOm2mgJy/GfnbRmRce7oQUJSS DgCPZBwHvAyBSvZj99KOYA8Ce+2dZlrfQlqJ7IYisswYhk9YX954utD259+ZCZOlRHgg lqfQxyfLrEY3Kw1dUQTSJ9E0AXNcN6rFE+aRJJrvw87exdwSNNjMkjJtIBdroKzwCsUe gYUg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1756300576; x=1756905376; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=iewKlvedgyomt9b7XwostDxxQdxTkvL2z9S97jOd5BA=; b=XpuySgS7Xc2Sc0wumHVN6j5kbtG0KqjQredaVj0nEyBdwBihKOdBG7Yqvn10YH47aN u8j2dvQ5FXcTdeMN1sySPaTeETEj9cZ9DOniJVxUFQ7iG6s+5jBUiNQCvD0Luywzlonz u+4sZJar/w4ICm2VauNcynWwLnXUSW/K3GzMRz55SjqG2E51UPmXs4Pqb+x+YAlaqwzn 2ifrsJDd5+KhsrsyvkYlWJ85eZFgBVf2G8+4uB8g8dNcLw2kKfv90KdH1PZ9vyGTG930 VgWbk6lrZGKRiEqCqnJDowutmZCYq/vamGYu35NwAP5sHydPpTUR7dW8XyWjz7kTBUIA i1pg== X-Forwarded-Encrypted: i=1; AJvYcCU1rEVggL3rR8FS9M2/sekKd9Q0whlOmzEoY5DXkHnYz6aGTawX5IHgtedMfL6w1KC3cK+HJ/E/iFhk+1PW+fE=@freebsd.org X-Gm-Message-State: AOJu0Yz3cKNjlYPJUbbU5uW5cPVHKgAKue9Bq7C7l2Uh/RScguSjjwd8 Nq2vh7JFbcl9qUJnDky0jBQp9AwXE9BqSJP0Ho8zLEpjjoZh9Lw8CeCysbRDeA6I5R4BPNfDHxt DcSyRkisnDD0RnA1rHsMm0uN/SJfhmE1z X-Gm-Gg: ASbGncsbhVta2r5PPQQQSla/EVKbpyQOCnvAgjqGl52RKQbxrwoMXjldWfRPm5B/5Ak bJa6pJJfHHUel4pWMA7JyWEkhAJllixqTob41r4mv0bAr/XHB40Dy8pVJKOu2jZe9aK6YHhDHkT 0PEOxYZHFE4i20WGC8GcHcI2YzIGi5t4TkK8PVtSL46nEZ/lFj07lD+RRP5flfp+hjF5vIsfwO7 trTBYB4UwR146yCHLjGvD1urSIv/a/L/2rBQFI= X-Google-Smtp-Source: AGHT+IEvz6ZjoLYPVE+uZNnuPJXgZvjlGfeYqSMRmD0QK2XYOiNgOUeNNPs2s5zUIMS3FeoY3QHSWsojGzNiOUyAZjU= X-Received: by 2002:a05:6402:510e:b0:61c:a1a6:52a2 with SMTP id 4fb4d7f45d1cf-61ca1a65d0amr3666189a12.28.1756300575929; Wed, 27 Aug 2025 06:16:15 -0700 (PDT) List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@FreeBSD.org MIME-Version: 1.0 References: <56dd78c6-a53a-4c4c-989a-335cc5fed405@FreeBSD.org> <1578a4eac5402d0496d8989e5258bc78@Leidinger.net> In-Reply-To: From: Rick Macklem Date: Wed, 27 Aug 2025 06:16:02 -0700 X-Gm-Features: Ac12FXzcfzU9J3uoFViA0gDl-m_DFUrH5AyMn4XEx-GTfKlU6-BSsJbxnc2Gd3A Message-ID: Subject: Re: heimdal -> MIT kdc migration To: Alexander Leidinger Cc: Gleb Smirnoff , Cy Schubert , freebsd-current@freebsd.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; TAGGED_FROM(0.00)[]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Rspamd-Queue-Id: 4cBlRB5Qv5z3sSv On Wed, Aug 27, 2025 at 1:18=E2=80=AFAM Alexander Leidinger wrote: > > Am 2025-08-26 19:21, schrieb Rick Macklem: > > On Tue, Aug 26, 2025 at 9:35=E2=80=AFAM Gleb Smirnoff > > wrote: > >> > >> On Tue, Aug 26, 2025 at 08:31:13AM -0700, Gleb Smirnoff wrote: > >> T> On Tue, Aug 26, 2025 at 08:13:26AM -0700, Rick Macklem wrote: > >> T> R> Ok. If you install FreeBSD-13.5 and then "pkg install heimdal", > >> you get a > >> T> R> working Heimdal-7.8 in ports. > >> T> R> > >> T> R> Now, I have another challenge. Fixing the master passwords. > >> T> R> I'll work on it later to-day. > >> T> > >> T> I have applied two commits from Heimdal from 2012 that add 'kadmin > >> dump -f MIT' > >> T> feature to our base heimdal and polished them to compile. So far > >> it doesn't > >> T> work yet, either create an empty dump or create a core dump, > >> instead of > >> T> database dump :) I'll see how difficult it is going to further > >> resolve that to > >> T> a working condition. If I succeed, then having 'dump -f MIT' in > >> base without > >> T> any ports would be the best solution. Can also be merged to > >> FreeBSD 14.4. > >> > >> Good news. In the above paragraph I was testing my change incorrectly > >> - threw > >> the new binary on a system running unpatched libraries. When run > >> correctly, > >> it successfully produced something that looks like a correct dump in > >> MIT format. > >> I haven't yet tried to load it into MIT kdc yet, though. > > You might have better luck than me, but if I just loaded it, > > "kadmin.local" wouldn't > > work. > > To get it loaded, I had to: > > - edit the mit.dump and remove the entries for > > K/M, kadmin/admin, kadmin/changepw and krbtgt/REALM. > > Then I... > > # kdb5_util create -s > > and > > # kdb5_util load -update mit.dump > > -after that, kadmin.local would find the prinicipals, but > > a "kinit" wouldn't work until I did a "change_password" on it. > > Have you tried "kadmin -l dump --decrypt --format=3DMIT"? Yes. It has not helped. (I've tried --decrypt at both the first dump of Heimdal-1.5 and at the second one in Heimdal-7.8.) I'll note that the MIT "kinit" fails before it prompts for a password, which suggests something is fundamentally broken in the TGT. I will be investigating this further to-day. rick > > Bye, > Alexander. > > -- > http://www.Leidinger.net Alexander@Leidinger.net: PGP 0x8F31830F9F2772BF > http://www.FreeBSD.org netchild@FreeBSD.org : PGP 0x8F31830F9F2772BF