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

Richard Sharpe realrichardsharpe at gmail.com
Fri Aug 16 19:18:33 MDT 2013


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.)

-- 
Regards,
Richard Sharpe
(何以解憂?唯有杜康。--曹操)


More information about the samba-technical mailing list