[PATCH 6/6] s4: add dfs smbtorture to selftests
Matthieu Patou
mat at matws.net
Tue May 11 11:22:24 MDT 2010
---
selftest/target/Samba4.pm | 4 +++-
source4/selftest/tests.sh | 6 ++++++
2 files changed, 9 insertions(+), 1 deletions(-)
diff --git a/selftest/target/Samba4.pm b/selftest/target/Samba4.pm
index 69add20..e82ccfd 100644
--- a/selftest/target/Samba4.pm
+++ b/selftest/target/Samba4.pm
@@ -732,12 +732,14 @@ sub provision($$$$$$$)
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}
diff --git a/source4/selftest/tests.sh b/source4/selftest/tests.sh
index 47bfba2..769e169 100755
--- a/source4/selftest/tests.sh
+++ b/source4/selftest/tests.sh
@@ -223,7 +223,13 @@ for bindoptions in connect $VALIDATE ; do
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
--
1.7.0.4
--------------010504080003090902020407
Content-Type: text/x-patch;
name="0001-pidl-fix-errors-and-improve-idl-in-dfsblobs.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
filename*0="0001-pidl-fix-errors-and-improve-idl-in-dfsblobs.patch"
More information about the samba-technical
mailing list