Mac OS X 10.9 following Samba DFS referrals (and possibly 10.76,10.8)

Richard Sharpe realrichardsharpe at gmail.com
Sun Aug 18 08:45:42 MDT 2013


On Sat, Aug 17, 2013 at 6:06 PM, Jeremy Allison <jra at samba.org> wrote:
> On Fri, Aug 16, 2013 at 06:18:33PM -0700, Richard Sharpe wrote:
>> 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.)
>
> Do you have the patch available ? Can you log a bugzilla
> bug and we'll get this fixed for 3.6.x and above.

Attached is the patch I currently have. This (in a slightly different
format) has been tested against OS X 10.9 in 3.6.12+.

-- 
Regards,
Richard Sharpe
(何以解憂?唯有杜康。--曹操)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Windows-overloads-the-EA-Lenght-field-in-the-DIRECTO.patch
Type: application/octet-stream
Size: 3196 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20130818/53b5104d/attachment.obj>


More information about the samba-technical mailing list