[PATCH] SAMBA_3_0 : remove ldap_domain2hostlist()

Love lha at kth.se
Wed May 3 21:09:19 GMT 2006


"Gerald (Jerry) Carter" <jerry at samba.org> writes:

> FYI....
>
> 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
this).

Se heimdal/lib/roken/resolve.c for a complete implementation.

Love

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 823 bytes
Desc: not available
Url : http://lists.samba.org/archive/samba-technical/attachments/20060503/7d8fc3e2/attachment.bin


More information about the samba-technical mailing list