[PATCH] fix DC search order during domain join

Uri Simchoni urisimchoni at gmail.com
Mon Jun 29 14:24:14 MDT 2015

This is a fix to domain controller lookup in "net ads join". The fix
lets net utility give a hint to dsgetdcname() as to the type of domain
name (flat or dns), thus avoiding needless fallback from dns to
netbios and fixing site-aware to site-less fallback.

Before this fix, a failure with on-site dns falls back to netbios
first. If netbios is enabled, we waste time. If netbios is disabled,
the resulting error code is not NT_STATUS_DOMAIN_CONTROLLER_NOT_FOUND,
site-less search is not carried out. So a site with RODC cannot be

Review appreciated.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: join.patch
Type: application/octet-stream
Size: 4233 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20150629/a64cfe2a/attachment.obj>

More information about the samba-technical mailing list