The command
samba-tool domain join samdom.example.com DC -U"SAMDOM\administrator"
returns
ERROR: Invalid role 'DC' (possible values: MEMBER, DC, RODC)
Funny enough, DC is an invalid role, but it's allowed. An oxymoron.
I guess, I'm missing a module.
I am using Alma 9.2, the latest Samba downloaded and installed on November 3rd, 2023. Everything is up to date. I can join this machine to the existing samdom.example.com domain successfully. I want to join it to an existing Windows 2008R2 domain as a 2nd domain controller. I also tried creating a new domain but with similar error messages.
Any idea would be highly welcome.