From ea33b55bf3eddd7f193fd24dd04ce31867be83ef Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Wed, 27 Apr 2016 01:00:14 +0200 Subject: [PATCH] selftest:Samba4: let fl2000dc use Windows2000 supported_enctypes MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit BUG: https://bugzilla.samba.org/show_bug.cgi?id=11849 Signed-off-by: Stefan Metzmacher Reviewed-by: Andreas Schneider Reviewed-by: Günther Deschner (similar to commit 587b5db7979c1ca1055f5bfd81ab79606cd3c2dd) --- selftest/target/Samba.pm | 13 +++++++++++++ selftest/target/Samba4.pm | 3 +++ 2 files changed, 16 insertions(+) diff --git a/selftest/target/Samba.pm b/selftest/target/Samba.pm index dabe442c142..069b85eaeea 100644 --- a/selftest/target/Samba.pm +++ b/selftest/target/Samba.pm @@ -204,6 +204,19 @@ sub mk_krb5_conf($$) forwardable = yes allow_weak_crypto = yes +"; + + if (defined($ctx->{supported_enctypes})) { + print KRB5CONF " + default_etypes = $ctx->{supported_enctypes} + default_as_etypes = $ctx->{supported_enctypes} + default_tgs_enctypes = $ctx->{supported_enctypes} + default_tkt_enctypes = $ctx->{supported_enctypes} + permitted_enctypes = $ctx->{supported_enctypes} +"; + } + + print KRB5CONF " [realms] $our_realms_stanza $other_realms_stanza diff --git a/selftest/target/Samba4.pm b/selftest/target/Samba4.pm index e8d591560fd..48ff9b8be86 100755 --- a/selftest/target/Samba4.pm +++ b/selftest/target/Samba4.pm @@ -282,6 +282,9 @@ sub provision_raw_prepare($$$$$$$$$$) $ctx->{swiface} = $swiface; $ctx->{password} = $password; $ctx->{kdc_ipv4} = $kdc_ipv4; + if ($functional_level eq "2000") { + $ctx->{supported_enctypes} = "arcfour-hmac-md5 des-cbc-md5 des-cbc-crc" + } # # Set smbd log level here. -- 2.34.1