summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2021-06-17 21:27:06 +1200
committerJoseph Sutton <jsutton@samba.org>2022-01-19 20:50:35 +0000
commit3dbf967703c9669e4c504ac92ed1b3834bc61c84 (patch)
tree586c565f5d1c2ad3acf62b3592724d8d95025fba
parent28701dc2d128f7fdfe8a4fa73584d1289918038a (diff)
downloadsamba-3dbf967703c9669e4c504ac92ed1b3834bc61c84.tar.gz
s4:kdc/heimdal: Always include the salt in the PA-ETYPE-INFO[2]
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>
-rw-r--r--source4/kdc/kdc-heimdal.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source4/kdc/kdc-heimdal.c b/source4/kdc/kdc-heimdal.c
index be4606a7abb..c05380f0841 100644
--- a/source4/kdc/kdc-heimdal.c
+++ b/source4/kdc/kdc-heimdal.c
@@ -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);