summaryrefslogtreecommitdiff
path: root/selftest/target
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2017-06-10 12:29:47 +0200
committerStefan Metzmacher <metze@samba.org>2017-06-14 02:53:27 +0200
commitee77759ed5aa8400ca30892efcca79a22911b50d (patch)
treea8af78c440396fed4429b7e4f1ccb9f25fecb30a /selftest/target
parent1e33a4f2114fbfd350bb57822ffd376c431ec61f (diff)
downloadsamba-ee77759ed5aa8400ca30892efcca79a22911b50d.tar.gz
selftest: pass the workgroup name to Samba3::provision()
Not all environments should use the samba workgroup name. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org> Autobuild-User(master): Stefan Metzmacher <metze@samba.org> Autobuild-Date(master): Wed Jun 14 02:53:27 CEST 2017 on sn-devel-144
Diffstat (limited to 'selftest/target')
-rwxr-xr-xselftest/target/Samba3.pm25
1 files changed, 12 insertions, 13 deletions
diff --git a/selftest/target/Samba3.pm b/selftest/target/Samba3.pm
index 32d10b5db08..d93d98e3af3 100755
--- a/selftest/target/Samba3.pm
+++ b/selftest/target/Samba3.pm
@@ -231,7 +231,7 @@ sub setup_nt4_dc($$)
fss: sequence timeout = 1
";
- my $vars = $self->provision($path,
+ my $vars = $self->provision($path, "SAMBA-TEST",
"LOCALNT4DC2",
"localntdc2pass",
$nt4_dc_options);
@@ -279,7 +279,7 @@ sub setup_nt4_dc_schannel($$)
server schannel = yes
";
- my $vars = $self->provision($path,
+ my $vars = $self->provision($path, "NT4SCHANNEL",
"LOCALNT4DC9",
"localntdc9pass",
$pdc_options);
@@ -318,7 +318,7 @@ sub setup_nt4_member($$$)
dbwrap_tdb_mutexes:* = yes
${require_mutexes}
";
- my $ret = $self->provision($prefix,
+ my $ret = $self->provision($prefix, $nt4_dc_vars->{DOMAIN},
"LOCALNT4MEMBER3",
"localnt4member3pass",
$member_options);
@@ -424,7 +424,7 @@ sub setup_admember($$$$)
";
- my $ret = $self->provision($prefix,
+ my $ret = $self->provision($prefix, $dcvars->{DOMAIN},
"LOCALADMEMBER",
"loCalMemberPass",
$member_options,
@@ -519,7 +519,7 @@ sub setup_admember_rfc2307($$$$)
idmap config $dcvars->{DOMAIN} : bind_path_group = ou=idmap,dc=samba,dc=example,dc=com
";
- my $ret = $self->provision($prefix,
+ my $ret = $self->provision($prefix, $dcvars->{DOMAIN},
"RFC2307MEMBER",
"loCalMemberPass",
$member_options,
@@ -607,7 +607,7 @@ sub setup_ad_member_idmap_rid($$$$)
idmap config $dcvars->{DOMAIN} : range = 2000000-2999999
";
- my $ret = $self->provision($prefix,
+ my $ret = $self->provision($prefix, $dcvars->{DOMAIN},
"IDMAPRIDMEMBER",
"loCalMemberPass",
$member_options,
@@ -712,7 +712,7 @@ sub setup_simpleserver($$)
smb encrypt = desired
";
- my $vars = $self->provision($path,
+ my $vars = $self->provision($path, "WORKGROUP",
"LOCALSHARE4",
"local4pass",
$simpleserver_options);
@@ -822,7 +822,7 @@ sub setup_fileserver($$)
acl_xattr:ignore system acls = yes
";
- my $vars = $self->provision($path,
+ my $vars = $self->provision($path, "WORKGROUP",
"FILESERVER",
"fileserver",
$fileserver_options,
@@ -909,7 +909,7 @@ sub setup_ktest($$$)
client max protocol = SMB3
";
- my $ret = $self->provision($prefix,
+ my $ret = $self->provision($prefix, "KTEST",
"LOCALKTEST6",
"localktest6pass",
$ktest_options);
@@ -999,7 +999,7 @@ map to guest = bad user
ntlm auth = yes
";
- my $vars = $self->provision($path,
+ my $vars = $self->provision($path, "WORKGROUP",
"maptoguest",
"maptoguestpass",
$options);
@@ -1262,9 +1262,9 @@ sub createuser($$$$)
}
}
-sub provision($$$$$$$$)
+sub provision($$$$$$$$$)
{
- my ($self, $prefix, $server, $password, $extra_options, $dc_server_ip, $dc_server_ipv6, $no_delete_prefix) = @_;
+ my ($self, $prefix, $domain, $server, $password, $extra_options, $dc_server_ip, $dc_server_ipv6, $no_delete_prefix) = @_;
##
## setup the various environment variables we need
@@ -1274,7 +1274,6 @@ sub provision($$$$$$$$)
my %ret = ();
my $server_ip = "127.0.0.$swiface";
my $server_ipv6 = sprintf("fd00:0000:0000:0000:0000:0000:5357:5f%02x", $swiface);
- my $domain = "SAMBA-TEST";
my $unix_name = ($ENV{USER} or $ENV{LOGNAME} or `PATH=/usr/ucb:$ENV{PATH} whoami`);
chomp $unix_name;