Content of supplementalCredentials attribute in MSAD FL2k25
Arvid Requate
requate at univention.de
Fri Mar 27 20:05:52 UTC 2026
Hi Denis and the tranquil IT crew,
sorry, for the last incomplete posting,
I came across these key types 19 and 20 generated by MS AD 2025 last November
in a customer environment. I would have guessed that Samba simply ignores them
currently, I have not experimented yet with that. Our use case was a bit
different but related in that we extracted and synced those keys into OpenLDAP
and at first we saw a "compatibility issue" with the Heimdal KDC, in way that
Heimdal calculated different values for those two key types. After a bit back
and forth with looking into RFC 8009 and and experimenting with an adjusted
value for "default_iteration_count" for the Microsoft KDC (See <https://
web.archive.org/web/20160128170945/http://blogs.technet.com/b/ad/archive/
2007/11/02/server-2008-and-windows-vista-encryption-better-together.aspx>) and
one funny remark via email by Metze (something along the lines of "Maybe
Microsoft actually followed the RFC" ;-)) I found that Heimdal uses 32768
hashing iterations for those two key types (as recommended by the RFC) while
Microsoft uses 4096 (as specified in the field default_iteration_count in
supplementalCredentials - at least they were not lying about that).
> * Is there current any plan to support those new etypes in Samba-AD?
I think it would be pretty straight forward to implement support for
ENCTYPE_AES128_CTS_HMAC_SHA256_128 and ENCTYPE_AES256_CTS_HMAC_SHA384_192
in Samba/ADDC too, but one should take care to explicitly specify the
iteration count when calculating those hashes. Attached you can find a draft of
an idea for that, similar to what I had to patch in an OpenLDAP overlay, but
untested in Samba.
> * Does anyone have information about the change in the
> Kerberos-Newer-Keys content ?
Looks like they "forgot" to mention it in the release notes. See <https://
techcommunity.microsoft.com/discussions/windowsserver/add-support-for-sha-2-
and-sha3-in-supported-kerberos-encryption-types/3961272>. Maybe <https://
x.com/MGrafnetter/status/1710171706902327731> is interesting too (actually I
kicked google multiple times for sha384).
> * I guess the 23 / ARCFOUR_HMAC_MD5 hash is going to replace the
> unicodePwd when it will be removed. Does anyone have some info on this?
Interesting, I didn't notice that. I still wonder how they want to handle
that. My impression was that msDS-KeyVersionNumber is just a generated
attribute backed by the version metadata for unicodePwd. But maybe that's just
what I recall from the Samba sources. I obviously don't know how it's
implemented in MS AD. I would have guessed that they keep the unicodePwd but
always generate a random hash going forward. I mean, moving the hash from
unicodePwd to supplementalCredentials doesn't gain much security in my book,
but what do I know.
Best regards,
Arvid
On Freitag, 27. März 2026 17:38:44 CET Denis CARDON via samba-technical wrote:
> Hi everyone,
>
> This week, Andréas and Yohannès had to look at a MSAD-2K25/FL2k25
> migration to Samba-AD. Joining a Samba-AD to the MSAD-2k5 does not work
> because FL2k25 is not supported.
>
> When we come accross join/replication issues during migration, we
> usually recreate the AD by copying all relevant attributes. In this
> specific case, one thing that seems to have changed is the way the
> supplementalCredentials attribute is built. It used to have (among other
> keys):
>
> * a Primary:Kerberos with a ordered list of hashes
> * 1 / dec-cbc-crc (deprecated / not used)
> * 3 / des-cbc-md5 (deprecated / not used)
>
> * a Kerberos-Newer-Keys with a ordered list of hashes (etype/etype
> name) (as per [1]):
> * 1 / dec-cbc-crc (deprecated / not used)
> * 3 / des-cbc-md5 (deprecated / not used)
> * 17 / AES128_CTS_HMAC_SHA1_96
> * 18 / AES256_CTS_HMAC_SHA1_96
>
> With our freshly installed MS-AD-2k25 / FL2k25 the Primary:Kerberos
> entry has been removed and we have :
>
> * a Kerberos-Newer-Keys with the following ordered list:
> * 17 / AES128_CTS_HMAC_SHA1_96
> * 18 / AES256_CTS_HMAC_SHA1_96
> * 19 / AES128_CTS_HMAC_SHA256_128
> * 20 / AES256_CTS_HMAC_SHA384_192
> * 23 / ARCFOUR_HMAC_MD5
>
> the new 19/20 etypes numbers match the one referenced in rfc8009 [2]
> the new 23 etypes matches the one referenced in rfc4757 [3]
>
> I have two questions about this :
>
> * Does anyone have information about the change in the
> Kerberos-Newer-Keys content ?
>
> * I guess the 23 / ARCFOUR_HMAC_MD5 hash is going to replace the
> unicodePwd when it will be removed. Does anyone have some info on this?
>
> * Is there current any plan to support those new etypes in Samba-AD?
>
> I'll create a bugzilla entry about this, I just wanted to have your
> feedback before filling up even more the Samba bugzilla :-)
>
> Thanks,
>
> Denis
>
> [1]
> https://learn.microsoft.com/en-us/openspecs/windows_protocols/ms-samr/1355fa
> 6b-d097-4ecc-8d5e-75b3a6533e04 [2] https://datatracker.ietf.org/doc/rfc8009/
> [3] https://datatracker.ietf.org/doc/html/rfc4757
--
Mary-Somerville-Str. 1
28359 Bremen
www.univention.de | www.univention.com
Managing Directors: Peter H. Ganten, Stefan Gohmann
Local court: Amtsgericht Bremen
HRB 20755 | Ust-ID: DE220051310
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 4096_iterations_also_for_ENCTYPE_AES256_CTS_HMAC_SHA384_192.patch
Type: text/x-patch
Size: 664 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20260327/a04a0f41/4096_iterations_also_for_ENCTYPE_AES256_CTS_HMAC_SHA384_192.bin>
More information about the samba-technical
mailing list