From samba-technical. Date: Fri, 16 Aug 2013 18:18:33 -0700 From: Richard Sharpe <realrichardsharpe@gmail.com> To: samba-technical <samba-technical@lists.samba.org> Subject: Mac OS X 10.9 following Samba DFS referrals (and possibly 10.76,10.8) Hi folks, It turns out that Mac OS X 10.9 will not follow path-based DFS referrals handed out by Samba. It turns out that this seems to be because Samba does not actually do what Windows does with such things. Firstly, Windows adds FILE_ATTRIBUTE_REPARSE_POINT to all directory entries that are DFS junction points in a FIND (FIND FIRST/FIND NEXT) response (SMB_FIND_ID_BOTH_DIRECTORY_INFO and others)). Secondly, Windows places IO_REPARSE_TAG_DFS in the EA size field for reasons known only to MS. With these two changes, Mac OS X 10.9 will happily follow path-based DFS links. (Thanks to George Colley for the hint that allowed me to figure this out.)
Created attachment 9146 [details] git-am fix for master/4.1.0/4.0.next This is what I've pushed to master. Jeremy.
Comment on attachment 9146 [details] git-am fix for master/4.1.0/4.0.next Looks good to me.
Comment on attachment 9146 [details] git-am fix for master/4.1.0/4.0.next Fix applies cleanly to 4.1.0, 4.0.x. I'll back-port for 3.6.x. Jeremy.
Turns out that this change allows Win XP to follow DFS referrals from Samba as well.
Didn't know we had a problem with that :-). Jeremy.
Created attachment 9147 [details] git-am fix for 3.6.next Back-ported version for 3.6.next. Jeremy.
(In reply to comment #5) > Didn't know we had a problem with that :-). Yeah. For some reason the more recent versions of Windows set the DFS bit in the header more frequently than XP does so XP want's to see that there is a reparse point there.
Richard, can you give me a +1 on the 3.6.x patch, then I'll re-assign to Karolin for inclusion in all our branches. Cheers, Jeremy.
Comment on attachment 9147 [details] git-am fix for 3.6.next Yes. Looks good to me.
Re-assigning to Karolin for inclusion in 4.1.0, 4.0.next, 3.6.next. Jeremy.
Also, this approach works with Mac OS X 10.7 and 10.9 so it probably works for 10.8 as well.
*** Bug 10095 has been marked as a duplicate of this bug. ***
(In reply to comment #10) > Re-assigning to Karolin for inclusion in 4.1.0, 4.0.next, 3.6.next. > > Jeremy. Pushed to autobuild-v4-1-test, autobuild-v4-0-test and v3-6-test.
Pushed to v4-1-test and v4-0-test. Closing out bug report. Thanks!
Created attachment 15065 [details] Patch for v4-10-test
Created attachment 15066 [details] Patch for v4-9-test
Created attachment 15067 [details] Patch for v4-8-test
Re-assigning to Karolin for inclusion in 4.10.next, 4.9.next (4.8.next?).
(In reply to Jeremy Allison from comment #18) Pushed to autobuild-v4-{10,9}-test.
(In reply to Karolin Seeger from comment #19) Pushed to both branches. Closing out bug report. Thanks!