Migrating samba Domain controller

Red Squirrel

No Lifer
May 24, 2003
70,155
13,566
126
www.anyf.ca
Is there a quick and easy way to migrate a Samba DC to a new box? (FC5 to FC9) Or is the only way to unjoin domain and rejoin for each workstation? I want to avoid that as it also screws up the profiles.
 

Brazen

Diamond Member
Jul 14, 2000
4,259
0
0
You need to set up a Samba BDC, remove the original DC and then promote the BDC to a PDC. You should be able to find a guide or two with google, or even look around the documentation on samba.org.
 

Brazen

Diamond Member
Jul 14, 2000
4,259
0
0
Originally posted by: RedSquirrel
Hmm so I can't just take the configs and password files over?

ah, well, if you can deal with some downtime, then yeah that should work. If you are using tdb for the password storage, be sure you get all the tdb files moved over. I've had to restore Samba member file server before, and it went fine just restoring the config files and the tdb files (I believe there were two in this case).
 

Red Squirrel

No Lifer
May 24, 2003
70,155
13,566
126
www.anyf.ca
oh ok good to know, since what I really just need to is do the move, then set my PC's DNS to the new server reboot ensure it works, then once it goes live I just change the IP on new server and change all DNS entries to point to the new IP then swap out the servers. This is a home setup so downtime is not an issue unless I'm working on something that needs the server, but if I'm working on the server itself... then not a huge issue.
 

Red Squirrel

No Lifer
May 24, 2003
70,155
13,566
126
www.anyf.ca
I migrated the /etc/samba folder, changed the sid to match old machine, as well as migrated the /etc/passwd and /etc/shadow. For some reason it's not reconizing the samba users. Is there any other step I should take? Like as a test I went smbpasswd -a user and it said it did not exist (where user is an actual user that should exist)

I had to install the tdb-tools package as well, anything else I should install?