The command I used on the new DC that I wanted to join to the existing domain was.
samba-tool domain join <domain> DC -Uadministrator --realm=<realm name> This seems to have worked like a charm. Since I didn't yet have DNS setup on the new server, I added the servers to my hosts file. The process to get everything replicated to all servers took a little while, but now I have three servers (Two samba4 and one win2k3) all in the domain as Domain Controllers. > First both Samba4 dcs must know each other by dns. Do not provision the > second samba4 as you want it to be in replication mode. Do not start samba > on your new DC!! > Then on your new DC: bin/net vampire your.realm. -Uadministrator > --realm=your.realm > If this is successful. Start samba on your new DC. > Go on your 1st DC you setup. > Now type: bin/ldbsearch -H /usr/local/samba/private/sam.ldb > objectclass=ntdsdsa objectguid --cross-ncs > EX result: > > # record 1 > dn: CN=NTDS > Settings,CN=NODE1,CN=Servers,CN=Default-First-Site- Name,CN=Sites,CN=Configur > ation,DC=tuebingen,DC=tst,DC=loc > objectGUID: 365d2a9f-bfe6-462d-965e-8622bfefc190 > > # record 2 > dn: CN=NTDS > Settings,CN=NODE2,CN=Servers,CN=Default-First-Site- Name,CN=Sites,CN=Configur > ation,DC=tuebingen,DC=tst,DC=loc > objectGUID: d6160c39-0810-4026-aa24-91c91797d892 > > Do not forget to update your dns settings after all. > > Good Luck > Daniel > > > ----------------------------------------------- > EDV Daniel Müller > > Leitung EDV > Tropenklinik Paul-Lechler-Krankenhaus > Paul-Lechler-Str. 24 > 72076 Tübingen > > Tel.: 07071/206-463, Fax: 07071/206-499 > eMail: [email protected] > Internet: www.tropenklinik.de > ----------------------------------------------- > > -----Ursprüngliche Nachricht----- > Von: [email protected] [mailto:[email protected]] > Im Auftrag von Caleb O'Connell > Gesendet: Dienstag, 7. August 2012 15:10 > An: [email protected] > Betreff: [Samba] Best way to add samba4 to existing domain > > I have Samba4 running, and it had a win2k3 server joined to it. This is > working great. > I'd like to add another Ubuntu 12.04 server with samba4 beta5. What's the > best join method? > > Do I provision the server as a member, then join using samba-tools domain > join <domain> When I do it looks like it doesn't replicate the directory, > just forwards? > > Should I provision as a DC with the same settings and then do the join? > This fails with a IO_TIMEOUT sort of error. > > Is there another method that I just haven't discovered yet? > > Thanks in advance for all the great help. > > Caleb > > > > -- > To unsubscribe from this list go to the following URL and read the > instructions: https://lists.samba.org/mailman/options/samba > -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
