join as DC fails: LDAP error 10 LDAP_REFERRAL, or how to properly create application directory partition

Alexey Sheplyakov asheplyakov at
Wed Jun 27 08:09:38 UTC 2018

On 06/25/2018 05:39 PM, Alexey Sheplyakov wrote:
> Hi,
> On 06/25/2018 05:30 PM, Rowland Penny wrote:
>  > Try adding '--server=dc0' to the join command.
> This works, however my goal is to get samba-tool to do the right thing 
> (pick the correct server, delay the creation of partition, whatever) 
> automatically.

The attached patch makes `samba-tool domain join` connect to the domain 
naming master when joining a new DC (unless the DC to talk with has
been explicitly specified via --server=smth).
-------------- next part --------------
A non-text attachment was scrubbed...
Type: text/x-patch
Size: 4454 bytes
Desc: not available
URL: <>

More information about the samba-technical mailing list