[PATCH] DFS referral shuffling

David Disseldorp ddiss at suse.de
Tue Feb 24 16:36:00 MST 2015

On Tue, 24 Feb 2015 19:37:13 +0000, Robin McCorkell wrote:

> Actually, referral shuffling is mentioned in the spec, [MS-DFSC]
> > The DFS server places the target servers in the referral response in
> the following order:
> > - Targets in the same site as the client are listed at the top of the
> referral response in random order.
> > - Targets outside the client's site are appended to the response in
> random order.

Yep, this makes it pretty clear that the server is responsible for
guiding the client with a referral list optimised for load balancing and

> Besides, implementing referral shuffling on the server side makes the
> admin's life much easier - load balancing is guaranteed by the server
> configuration, rather than relying on updated clients. But I agree: the
> clients should perform heuristics to determine the best server to
> connect to, rather than blindly picking the first one that works.

FWIW, this behaviour (bug 10123) was recently changed so that smbclient
now uses a cached connection if present, before fallback to the top
entry in the referrals list.

Cheers, David
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 181 bytes
Desc: OpenPGP digital signature
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20150225/5857d931/attachment.pgp>

More information about the samba-technical mailing list