summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2023-05-11 14:25:31 +1200
committerAndrew Bartlett <abartlet@samba.org>2023-05-16 23:29:32 +0000
commit72335e742e041ea213598a62ae165edeed4b8c99 (patch)
tree83e566405b8c43cd9a82a32893c4249a63177600
parent0252941bb36926c3a235593da4c717bc547104f9 (diff)
downloadsamba-72335e742e041ea213598a62ae165edeed4b8c99.tar.gz
selftest: Change ad_dc environment to be 2016 functional level
This is not yet supported in full, but this makes ad_dc match our full set of available features. Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Joseph Sutton <josephsutton@catalyst.net.nz>
-rwxr-xr-xselftest/target/Samba4.pm17
1 files changed, 15 insertions, 2 deletions
diff --git a/selftest/target/Samba4.pm b/selftest/target/Samba4.pm
index 8f301cae998..0a2e5d77e97 100755
--- a/selftest/target/Samba4.pm
+++ b/selftest/target/Samba4.pm
@@ -1995,9 +1995,19 @@ sub provision_ad_dc()
my $config_h = {};
if (!defined($functional_level)) {
- $functional_level = "2008";
+ $functional_level = "2016";
}
+ # If we choose to have distinct environments for experimental
+ # 2012 as well as the experimental 2016 support, we should
+ # extend what we match here.
+ if ($functional_level eq "2016") {
+ $smbconf_args = "$smbconf_args
+
+[global]
+ ad dc functional level = 2016
+";
+ }
if (defined($ENV{CONFIG_H})) {
$config_h = read_config_h($ENV{CONFIG_H});
}
@@ -2987,13 +2997,16 @@ sub setup_schema_dc
# provision the PDC using an older base schema
my $provision_args = ["--base-schema=2008_R2", "--backend-store=$self->{default_ldb_backend}"];
+ # We set the functional level to 2008_R2 to match the older
+ # base-schema (to allow schema upgrade to be tested)
my $env = $self->provision_ad_dc($path,
"liveupgrade1dc",
"SCHEMADOMAIN",
"schema.samba.example.com",
undef,
"drs: max link sync = 2",
- $provision_args);
+ $provision_args,
+ "2008_R2");
unless ($env) {
return undef;
}