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

Jeremy Allison jra at samba.org
Mon Aug 19 11:30:53 MDT 2013


On Mon, Aug 19, 2013 at 10:29:38AM -0700, Jeremy Allison wrote:
> On Sun, Aug 18, 2013 at 07:45:42AM -0700, Richard Sharpe wrote:
> > 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+.
> 
> This patch is missing the additional definition of IO_REPARSE_TAG_DFS
> inside ntioctl.h.
> 
> Can you add that and resend please !

Never mind, found it here :-).

IO_REPARSE_TAG_DFS 0x8000000A


More information about the samba-technical mailing list