From: Gary Lockyer Date: Thu, 21 Sep 2017 22:10:02 +0000 (+1200) Subject: s4:kdc: cope with upstream rename of configuration parameters. X-Git-Tag: tdb-1.4.6~36 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=28701dc2d128f7fdfe8a4fa73584d1289918038a;p=thirdparty%2Fsamba.git s4:kdc: cope with upstream rename of configuration parameters. This copes with the upstream commit: commit c757eb7fb04a9b0ca883ddb72c1bc75bf5d814f3 Author: Nicolas Williams Date: Fri Nov 25 17:21:04 2011 -0600 Rename and fix as/tgs-use-strongest-key config parameters Different ticket session key enctype selection options should distinguish between target principal type (krbtgt vs. not), not between KDC request types. NOTE: THIS COMMIT WON'T COMPILE/WORK ON ITS OWN! Signed-off-by: Gary Lockyer [abartlet@samba.org Researched and updated the commit message] Reviewed-by: Stefan Metzmacher --- diff --git a/source4/kdc/kdc-heimdal.c b/source4/kdc/kdc-heimdal.c index f3bab824655..be4606a7abb 100644 --- a/source4/kdc/kdc-heimdal.c +++ b/source4/kdc/kdc-heimdal.c @@ -403,9 +403,9 @@ static void kdc_post_fork(struct task_server *task, struct process_details *pd) * The old behavior in the _kdc_get_preferred_key() * function is use_strongest_server_key=TRUE. */ - kdc_config->as_use_strongest_session_key = false; + kdc_config->tgt_use_strongest_session_key = false; kdc_config->preauth_use_strongest_session_key = true; - kdc_config->tgs_use_strongest_session_key = false; + kdc_config->svc_use_strongest_session_key = false; kdc_config->use_strongest_server_key = true; kdc_config->autodetect_referrals = false;