Signed-off-by: Stefan Metzmacher <metze@samba.org>
push(@{$ctx->{directories}}, "$ctx->{tmpdir}");
push(@{$ctx->{directories}}, "$ctx->{tmpdir}/test1");
push(@{$ctx->{directories}}, "$ctx->{tmpdir}/test2");
-
+ my $msdfs = "no";
+ $msdfs = "yes" if ($server_role eq "domain controller");
$ctx->{smb_conf_extra_options} = "
max xmit = 32K
server max protocol = SMB2
$extra_smbconf_options
+ host msdfs = $msdfs
[tmp]
path = $ctx->{tmpdir}
done
done
done
+# Tests for the DFS referral calls implementation
+dfsc=`$smb4torture --list | grep "^DFS-" | xargs`
+
+for t in $dfsc; do
+ plansmbtorturetestsuite "$t" dc $ADDARGS //\$SERVER/ipc$ -U"\$USERNAME"%"\$PASSWORD"
+done
# Tests for the NET API