From: Stefan Metzmacher Date: Tue, 26 Apr 2016 23:00:14 +0000 (+0200) Subject: selftest:Samba4: let fl2000dc use Windows2000 supported_enctypes X-Git-Tag: samba-4.2.12~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ea33b55bf3eddd7f193fd24dd04ce31867be83ef;p=thirdparty%2Fsamba.git selftest:Samba4: let fl2000dc use Windows2000 supported_enctypes 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) --- 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.