s4:smb_server: add dfs smbtorture to selftests
authorMatthieu Patou <mat@matws.net>
Tue, 11 May 2010 17:22:24 +0000 (21:22 +0400)
committerStefan Metzmacher <metze@samba.org>
Tue, 18 May 2010 13:31:14 +0000 (15:31 +0200)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
selftest/target/Samba4.pm
source4/selftest/tests.sh

index 69add204fefd5b6cd2644c62e0dd2592d4efdbba..e82ccfdfab264d0aeff95d8bc47cc845a746199b 100644 (file)
@@ -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}
index 47bfba2bc50fb07bbf5952e16b0d6a048ca96bb8..769e1695d42f051cef76bcab180b05ae94e29431 100755 (executable)
@@ -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