[PATCH 2/2] selftest: shuffle msdfs-share DFS referral responses

Robin McCorkell rmccorkell at karoshi.org.uk
Fri Feb 27 07:32:30 MST 2015


From: David Disseldorp <ddiss at samba.org>

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 at samba.org>
---
 selftest/target/Samba3.pm | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/selftest/target/Samba3.pm b/selftest/target/Samba3.pm
index 8209402..934153c 100755
--- a/selftest/target/Samba3.pm
+++ b/selftest/target/Samba3.pm
@@ -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
-- 
1.9.1



More information about the samba-technical mailing list