1 --- samba-4.5.6/source4/kdc/kdc-heimdal.c.orig 2017-03-13 17:48:51.591429490 +0100
2 +++ samba-4.5.6/source4/kdc/kdc-heimdal.c 2017-03-13 19:10:54.528039946 +0100
4 * The old behavior in the _kdc_get_preferred_key()
5 * function is use_strongest_server_key=TRUE.
7 - kdc_config->as_use_strongest_session_key = false;
8 + kdc_config->tgt_use_strongest_session_key = false;
9 kdc_config->preauth_use_strongest_session_key = false;
10 - kdc_config->tgs_use_strongest_session_key = false;
11 + kdc_config->svc_use_strongest_session_key = false;
12 kdc_config->use_strongest_server_key = true;
14 /* Register hdb-samba4 hooks for use as a keytab */
15 --- samba-4.5.6/source4/kdc/hdb-samba4-plugin.c.orig 2016-08-11 09:51:05.000000000 +0200
16 +++ samba-4.5.6/source4/kdc/hdb-samba4-plugin.c 2017-03-13 20:50:38.124638290 +0100
21 -#if (HDB_INTERFACE_VERSION != 8 && HDB_INTERFACE_VERSION != 7)
22 +#if (HDB_INTERFACE_VERSION < 8 || HDB_INTERFACE_VERSION > 9)
23 #error "Unsupported Heimdal HDB version"
26 --- samba-4.5.6/source4/kdc/sdb_to_hdb.c.orig 2016-08-11 09:51:05.000000000 +0200
27 +++ samba-4.5.6/source4/kdc/sdb_to_hdb.c 2017-03-13 21:20:28.297951181 +0100
29 h->allow_kerberos4 = s->allow_kerberos4;
30 h->allow_digest = s->allow_digest;
31 h->locked_out = s->locked_out;
32 +#if HDB_INTERFACE_VERSION < 9
33 h->_unused18 = s->_unused18;
35 + h->require_pwchange = s->_unused18;
37 h->_unused19 = s->_unused19;
38 h->_unused20 = s->_unused20;
39 h->_unused21 = s->_unused21;