summaryrefslogtreecommitdiff
path: root/selftest/target
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2016-04-27 01:00:14 +0200
committerStefan Metzmacher <metze@samba.org>2016-04-28 16:51:17 +0200
commit587b5db7979c1ca1055f5bfd81ab79606cd3c2dd (patch)
tree5981ba5d72d61a34ab88d0cf257685e0504d9da2 /selftest/target
parent70910334caa176bf98fece7d638ed599979dc173 (diff)
downloadsamba-587b5db7979c1ca1055f5bfd81ab79606cd3c2dd.tar.gz
selftest:Samba4: let fl2000dc use Windows2000 supported_enctypes
BUG: https://bugzilla.samba.org/show_bug.cgi?id=11849 Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org> Reviewed-by: Günther Deschner <gd@samba.org>
Diffstat (limited to 'selftest/target')
-rw-r--r--selftest/target/Samba.pm13
-rwxr-xr-xselftest/target/Samba4.pm3
2 files changed, 16 insertions, 0 deletions
diff --git a/selftest/target/Samba.pm b/selftest/target/Samba.pm
index 6ca10361f53..17a2bbe5f9b 100644
--- a/selftest/target/Samba.pm
+++ b/selftest/target/Samba.pm
@@ -200,6 +200,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
";
diff --git a/selftest/target/Samba4.pm b/selftest/target/Samba4.pm
index 0ac386c0b07..7bd4cada371 100755
--- a/selftest/target/Samba4.pm
+++ b/selftest/target/Samba4.pm
@@ -386,6 +386,9 @@ sub provision_raw_prepare($$$$$$$$$$$)
$ctx->{password} = $password;
$ctx->{kdc_ipv4} = $kdc_ipv4;
$ctx->{kdc_ipv6} = $kdc_ipv6;
+ if ($functional_level eq "2000") {
+ $ctx->{supported_enctypes} = "arcfour-hmac-md5 des-cbc-md5 des-cbc-crc"
+ }
#
# Set smbd log level here.