[Samba] Migrate from sernet-samba to samba4
samba at kretz.net
samba at kretz.net
Fri May 26 17:40:00 UTC 2017
I want to migrate from Sernet samba as well, and to make matters worse it's not a current version (I'm on 4.1.17-SerNet-Debian-10.wheezy)
If I understand correctly, I should compile the same version of samba as my Sernet version, join it, demote the Sernet server, and after that's completed and working properly, upgrade the new samba server.
4.1.17 doesn't show in the downloads on samba.org, and when I try to join 4.1.23 I get the error included below. Is it because of the version mismatch?
root at debianaddc3:/opt/samba# samba-tool domain join ad.xxxx.net DC -U"AD\kevin" --dns-backend=SAMBA_INTERNAL
Finding a writeable DC for domain 'ad.xxxxx.net'
Found DC dc2.ad.xxxx.net
Password for [AD\kevin]:
Failed to bind - LDAP client internal error: NT_STATUS_INVALID_PARAMETER
Failed to connect to 'ldap://dc2.ad.xxxx.net' with backend 'ldap': (null)
ERROR(ldb): uncaught exception - None
File "/opt/samba/lib/python2.7/site-packages/samba/netcmd/__init__.py", line 175, in _run
return self.run(*args, **kwargs)
File "/opt/samba/lib/python2.7/site-packages/samba/netcmd/domain.py", line 555, in run
machinepass=machinepass, use_ntvfs=use_ntvfs, dns_backend=dns_backend)
File "/opt/samba/lib/python2.7/site-packages/samba/join.py", line 1150, in join_DC
machinepass, use_ntvfs, dns_backend, promote_existing)
File "/opt/samba/lib/python2.7/site-packages/samba/join.py", line 81, in __init__
File "/opt/samba/lib/python2.7/site-packages/samba/samdb.py", line 56, in __init__
File "/opt/samba/lib/python2.7/site-packages/samba/__init__.py", line 114, in __init__
self.connect(url, flags, options)
File "/opt/samba/lib/python2.7/site-packages/samba/samdb.py", line 71, in connect
From: "samba" <samba at lists.samba.org>
To: "samba" <samba at lists.samba.org>
Sent: Thursday, May 25, 2017 9:42:13 AM
Subject: Re: [Samba] Migrate from sernet-samba to samba4
On Thu, 25 May 2017 14:29:20 +0200
Marc Muehlfeld via samba <samba at lists.samba.org> wrote:
> Am 25.05.2017 um 13:58 schrieb Tim ODriscoll via samba:
> > Am I correct in thinking that to migrate from sernet's
> > packages I'd need to remove one server from the domain,
> > re-compile the samba source using the same configure
> > options, then 'make install', then re-join it to the
> > domain as a DC? Then do the same on my other DC..?
> If you use the same configure options, you don't have to remove the
> DC from the domain and rejoin later, because then the binaries would
> use the same paths to the databases which are (usually) not deleted
> if you uninstall a package.
> Even if the paths to the databases changes, you don't have to,
> because you can move the databases. However, this will all be part of
> the migration documentation I'm working on. Give me some time to
> finish it. It will cover all these scenarios.
The easiest way to migrate is to set up a new computer, install the
version of Samba that you want to use, join this to the domain as a new
DC. When you are sure that replication etc is working correctly,
demote and remove the old DC.
Trying to change from one set of packages to another will always have
a slight chance of a mistake creeping, it very probably won't happen,
but it might.
To unsubscribe from this list go to the following URL and read the
More information about the samba