summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2016-04-27 01:00:14 +0200
committerKarolin Seeger <kseeger@samba.org>2016-04-29 12:06:26 +0200
commitea33b55bf3eddd7f193fd24dd04ce31867be83ef (patch)
treebb8f0f72a4df0c040159ac0c6a0141a1fbcb1e44
parentf83d13897f8de71729e7fae597a874dfef7b5831 (diff)
downloadsamba-ea33b55bf3eddd7f193fd24dd04ce31867be83ef.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> (similar to commit 587b5db7979c1ca1055f5bfd81ab79606cd3c2dd)
-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 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.