]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s4:kdc: cope with upstream rename of configuration parameters.
authorGary Lockyer <gary@catalyst.net.nz>
Thu, 21 Sep 2017 22:10:02 +0000 (10:10 +1200)
committerJoseph Sutton <jsutton@samba.org>
Wed, 19 Jan 2022 20:50:35 +0000 (20:50 +0000)
This copes with the upstream commit:

commit c757eb7fb04a9b0ca883ddb72c1bc75bf5d814f3
Author: Nicolas Williams <nico@cryptonector.com>
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 <gary@catalyst.net.nz>
[abartlet@samba.org Researched and updated the commit message]
Reviewed-by: Stefan Metzmacher <metze@samba.org>
source4/kdc/kdc-heimdal.c

index f3bab82465507b825aafcfc03df812bf4a96eeb8..be4606a7abb97236aad23249dc546a99c23bf2dc 100644 (file)
@@ -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;