[Samba] Migrate and Update (Samba 4.1 ADDC to Samba Latest Version on different Server).

Rowland Penny rpenny at samba.org
Fri Nov 18 16:43:13 UTC 2022



On 18/11/2022 16:21, Juan Ignacio via samba wrote:
> Thx, Andrew and Rowland seem awesome the new version of samba.
> Already installed samba 4.16 from the backports on Debian 11.
> 
> I didn't touch anything, only Installed It.Version 4.16.6-Debian
> 
> Now is time to migrate from 4.1 to 4.16
> 
> The production machine is a Debian 7 with Samba 4.1 working OK.
> 
> The new server is a Debian 11 with Samba 4.16.6-Debian, without any setup
> or configuration.
> root at titan:~# samba -V
> Version 4.16.6-Debian
> root at titan:~# service samba-ad-dc status
> ● samba-ad-dc.service>       Loaded: masked (Reason: Unit samba-ad-dc.service is masked.)
>       Active: inactive (dead)
> 
> Need some tips to start the migration.
> 
> For now both servers are in the same network but i can separate them if
> necessary.

You are NOT migrating your Samba AD, you are upgrading it.

First ensure you have a good backup of your existing DC, just in case.

On your new Debian machine, remove any existing smb.conf file.

Ensure that the /etc/resolv.conf has only these lines:

search your.dns.domain
nameserver YOUR.EXISTING.DC.IPADDRESS

/etc/hosts has 127.0.0.1 pointing to localhost and there is a line like 
this (replace with your information):

the.computers.ipaddress the_computers_fqdn the_computers_short_hostname

/etc/hostname should only contain the computers short hostname.

Once they are set, run as root:

samba-tool domain join your.dns.domain DC -U Administrator

Again, replace 'your.dns.domain' with your dns domain.

You should be prompted for the Administrator password and then the 
computer should be joined to your AD domain as a new DC.

Rowland



More information about the samba mailing list