[Samba] Joining a new Samba AD DC

Rowland Penny rpenny at samba.org
Mon Jul 24 07:06:04 UTC 2023

On 24/07/2023 07:52, Rowland Penny via samba wrote:

> The correct version should have been:
> samba-tool domain join hprs.local DC -U Administrator
> The command should also have failed because you had a smb.conf file, you 
> need to remove any existing smb.conf when joining a DC, the join would 
> then create a new one

Hi Mark, the only thing you did incorrectly was to not specify that you 
were joining as a DC. After reading the code, it seems that if you do 
not specify the type of join, MEMBER, DC or RODC, it defaults to MEMBER, 
which, in my opinion, it shouldn't, it should error out.


More information about the samba mailing list