s4:kdc/heimdal: Always include the salt in the PA-ETYPE-INFO[2]
authorAndrew Bartlett <abartlet@samba.org>
Thu, 17 Jun 2021 09:27:06 +0000 (21:27 +1200)
committerJoseph Sutton <jsutton@samba.org>
Wed, 19 Jan 2022 20:50:35 +0000 (20:50 +0000)
This matches Windows and is detected by our samba.tests.krb5.as_canonicalization_tests
test as this always expects the salt, which Windows always provides.

NOTE: THIS COMMIT WON'T COMPILE/WORK ON ITS OWN!

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
source4/kdc/kdc-heimdal.c

index be4606a7abb97236aad23249dc546a99c23bf2dc..c05380f08419071723e41c5cdb8ec573a4418803 100644 (file)
@@ -410,6 +410,8 @@ static void kdc_post_fork(struct task_server *task, struct process_details *pd)
 
        kdc_config->autodetect_referrals = false;
 
+       kdc_config->force_include_pa_etype_salt = true;
+
        /* Register hdb-samba4 hooks for use as a keytab */
 
        kdc->base_ctx = talloc_zero(kdc, struct samba_kdc_base_context);