Patch: Add support for V4 DFS referrals

Jeremy Allison jra at samba.org
Tue Jun 27 22:59:10 UTC 2017


On Thu, Jun 22, 2017 at 09:29:06PM -0700, Richard Sharpe via samba-technical wrote:
> Hi folks,
> 
> Attached is a patch that adds support for V4 DFS referrals.
> 
> We found that if you returned a V3 referral when a V4 referral was
> asked for Windows 10 and maybe Windows 7 would not always follow your
> referrals.

I'm not sure about this:

        if (r->in.req.max_referral_level >= 3) {
-               max_referral_level = 3;
+               /*
+                * Give them what they asked for.
+                */
+               max_referral_level = r->in.req.max_referral_level;
        }

If you're only adding v4, why isn't this just
a change to >=4, max_referral_level = 4 instead ?



More information about the samba-technical mailing list