[Samba] How to move NT4-Domain from one samba-PDC to another

Stefan G. Weichinger lists at xunil.at
Tue Jan 14 06:53:59 MST 2014


Am 14.01.2014 14:47, schrieb Andrew Bartlett:
> On Tue, 2014-01-14 at 14:06 +0100, Stefan G. Weichinger wrote:
>> Am 14.01.2014 13:55, schrieb Andrew Bartlett:
>>> On Tue, 2014-01-14 at 12:36 +0100, Stefan G. Weichinger wrote:
>>>> Could someone please point me at the current best practice to move an
>>>> existing Samba-NT4-Domain from one samba-PDC to another?
>>>>
>>>> I have to move over ... the old server gets substituted.
>>>>
>>>> The current PDC runs Samba 3.5.11 and has its data in tdb-files, not in
>>>> LDAP. The new server runs Samba 3.6.22 if that is important in any way.
>>>> (both servers on gentoo linux)
>>>>
>>>> This is a rather small domain with around 20 users/machines ...
>>>>
>>>> As far as I understand I will have to copy over stuff like
>>>> /var/lib/samba etc ... and make sure to keep up the SID ("net
>>>> getlocalsid" ..).
>>>
>>> That's pretty much all that is required.  If you keep the same hostname,
>>> then the SID will stay the same, because Samba really won't know the
>>> difference, but regardless just check and set it if it changes on you. 
>>
>>
>>
>> Is it problematic to change the hostname?
> 
> It shouldn't be a problem, as in our 'classic' domain code we don't have
> a 'self join' of the DC to it's own domain. 
> 
>> We wanted a new host in parallel of the old, so there are 2 different
>> linux-hostnames ...
>>
>> I assume I will then have to
>>
>> "net getlocalsid" -> "net setlocalsid"
> 
> Yes (maybe, it should not need it, but always best to be safe here). 

thanks for infos, we will try that on friday ;-)

S



More information about the samba mailing list