selftest: shuffle msdfs-share DFS referral responses
authorDavid Disseldorp <ddiss@samba.org>
Fri, 27 Feb 2015 14:52:47 +0000 (14:52 +0000)
committerJeremy Allison <jra@samba.org>
Sat, 28 Feb 2015 00:22:36 +0000 (01:22 +0100)
Add a secondary server path to the msdfs-src1 DFS link, and test "msdfs
shuffle referrals" behaviour during selftest using the existing
samba3.blackbox.smbclient_s3 suite.

Signed-off-by: David Disseldorp <ddiss@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Sat Feb 28 01:22:36 CET 2015 on sn-devel-104

selftest/target/Samba3.pm

index 8209402de2aea0e68be583b92e9a2b9932acb1f1..934153c053783ea0645b27cea92a353483d5b221 100755 (executable)
@@ -1026,7 +1026,8 @@ sub provision($$$$$$$$)
        }
        close(MSDFS_TARGET);
        chmod 0666, $msdfs_target;
-       symlink "msdfs:$server_ip\\ro-tmp", "$msdfs_shrdir/msdfs-src1";
+       symlink "msdfs:$server_ip\\ro-tmp,$server_ipv6\\ro-tmp",
+               "$msdfs_shrdir/msdfs-src1";
        symlink "msdfs:$server_ipv6\\ro-tmp", "$msdfs_shrdir/deeppath/msdfs-src2";
 
        ##
@@ -1253,6 +1254,7 @@ sub provision($$$$$$$$)
 [msdfs-share]
        path = $msdfs_shrdir
        msdfs root = yes
+       msdfs shuffle referrals = yes
        guest ok = yes
 [hideunread]
        copy = tmp