Windows 7 selecting wrong DC from replicated Samba4 setup

Andrew Bartlett abartlet at
Wed Dec 15 14:57:18 MST 2010

On Wed, 2010-12-15 at 10:46 +0100, Axel Gembe wrote:
> I have a Samba4 setup where I replicate the domain in 2 sites, each 
> having their own subnet. This works fine except that my Windows computer 
> seems to select the wrong DC (non-local) until I bring it down. If it is 
> down, it uses the local DC and all is well, but otherwise I have quite 
> some delay. It should prefer the DC that is in the local subnet 
> according to this document:
> I've tried everything I could think of and don't get it to use the 
> correct DC. Any help ?

Samba4's support for sites is very, very immature.  We probably need to
do a fair bit more work in the CLDAP and other related areas to properly
handle this. 

It should all be documented between the WSPP docs and other AD docs, so
it's not a matter of not knowing, just needing the time to implement
things.  I'll happily review any patches you care to propose :-)

Andrew Bartlett

More information about the samba-technical mailing list