Draft #2: Re: [PATCH] SAMBA_3_0 : remove ldap_domain2hostlist()
lha at kth.se
Fri May 5 16:48:32 GMT 2006
"Gerald (Jerry) Carter" <jerry at samba.org> writes:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> Love wrote:
>> "Gerald (Jerry) Carter" <jerry at samba.org> writes:
>>> Here's a short patch to replace the OpenLDAP ldap_domain2hostlist()
>>> calls with a small internal dns query. The next step would be
>>> to refactor the ads_dns_query_dcs() code to a generic DNS SRV
>>> query function.
>> You need to read up on RFC 2782 how to sort the dns srv
>> rr entries.
>> Also, you need to make the request space larger. I don't
>> know how large your NS_PACKETSZ is, probably 512 which
>> is the udp packet size, but it wont be large enough for
>> the TCP with 100 DC's case (I'm not kidding, people do
> Round #2.
You need to randomize the sorting for entries within same priority using
weight so select one of the entires.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 823 bytes
Desc: not available
Url : http://lists.samba.org/archive/samba-technical/attachments/20060505/d78f0eb1/attachment.bin
More information about the samba-technical