Transferring your Samba3-NT4 to a new host
The following operations are performed with the root account.
Stop the samba service with systemctl stop smb.
Dump the contents of your directory with slapcat > ldap_dump.ldif.
Recover the files
/etc/slapd/
,/etc/samba/
,/etc/libnss*
and/var/lib/samba/
.Install the new machine with a basic Debian Buster 64bit by following this documentation.
Install the following packages on the new machine:
apt-get install slapd samba libnss-ldap
On the new host, copy back the four previously saved files.
Reintegrate the LDAP database:
systemctl stop slapd rm -Rf /var/lib/ldap/* slapadd -f /root/ldap_dump.ldif chown -R openldap:openldap /var/lib/ldap