[PATCH] Server affinity for winbindd in Samba 3.0

Gerald (Jerry) Carter jerry at samba.org
Thu Feb 2 21:39:31 GMT 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Guenther Deschner wrote:

> On Thu, Feb 02, 2006 at 02:32:36PM -0600, Gerald (Jerry) Carter wrote:
>> Folks,
>>
>> Here's a small patch for implementing what MS calls "server
>> affinity".  It's the idea that we should give preference to
>> the DC that we last successfully connected to.  For example,
>> winbindd should use the same server that 'net ads join' utilized
>> in order to avoid problems due to domain replication.
>>
>> The patch itself is at
>> http://www.samba.org/~jerry/patches/samba-3.0.21b-affinity.patch
> 
> Yes, this looks really interesting ! 
> As in general our various find-dc-routines really need some cleanup.

There is really only one find DC list.  get_sorted_dc_list().
The main problem I had was the Volker's original code in winbindd
that sprayed DC and took the one with the quickest response did not
allow for giving precedence to a specific DC.  And the code that
was there was apparently never executed.

And I need to re-enable the GETDC location code.  There were
originally memory alignment issues.  Plus I've still got to add
code to store the DC used in 'net rpc join'.  And to deal with
Samba DC's and trusted DCs.




cheers, jerry
=====================================================================
I live in a Reply-to-All world.               -----------------------
Samba                                    ------- http://www.samba.org
Centeris                         -----------  http://www.centeris.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFD4nwTIR7qMdg1EfYRAtlEAJ0SUGaPX2D41u7RXwdwmeeIPyqeTQCg7caq
fKHTJ9MkEGsm1Ghh4Uvj61Y=
=Fyn+
-----END PGP SIGNATURE-----


More information about the samba-technical mailing list