samba-users August 2010 archive
Main Archive Page > Month Archives  > samba-users archives
samba-users: Re: [Samba] Moving Samba PDC to new machine

Re: [Samba] Moving Samba PDC to new machine

From: Daniel Müller <mueller_at_nospam>
Date: Tue Aug 24 2010 - 06:53:24 GMT
To: "'Donny Brooks'" <dbrooks@mdah.state.ms.us>, <samba@lists.samba.org>

Hi,
Install ldap and samba on the new machine,
move your ldap.conf and slapd.conf, smb.conf to the new machine. Do not
start samba or ldap!
Make exact the same directories as you did on the old samba, according to
your smb.conf
slapcat -l master.ldif your ldap on the old machine.
Move the ldif to the new machine.
According to you new machines IP you have to work you ldap and smb
configuration.
Do not start ldap! Then on the new machine: slapadd -l master.ldiff
Be shure the new databases are owned by ldap.
Now smbpasswd -w youldapadminpasswordfromsmb.conf
Important: On the old machine fetch the sid: net getlocalsid yourdomain.
Copy this sid.
On the new machine: net setlocalsid thesidyoucopied.
For me on centos5.5 I installed ldap-client to.
>From prompt type: system-config-authentication
Choose Ldap authentification, Ldap-Properties fill in your Ldap-Server and
Search-Base.
Copy the files from the old server to the new with rsync.
Stop samba/ldap on the old server
Start ldap start samba on the new.
And you are running.
In my case I moved my samba from an old sidux to viruell centos5.5 on
windows 2008 Server.
 

-----------------------------------------------
EDV Daniel Müller

Leitung EDV
Tropenklinik Paul-Lechler-Krankenhaus
Paul-Lechler-Str. 24
72076 Tübingen

Tel.: 07071/206-463, Fax: 07071/206-499
eMail: mueller@tropenklinik.de
Internet: www.tropenklinik.de
-----------------------------------------------

-----Ursprüngliche Nachricht-----
Von: samba-bounces@lists.samba.org [mailto:samba-bounces@lists.samba.org] Im
Auftrag von Donny Brooks
Gesendet: Montag, 23. August 2010 21:29
An: samba@lists.samba.org
Betreff: Re: [Samba] Moving Samba PDC to new machine

 I apologize for not explaining why I am asking this. Recently we had to
move a subset of our users off of the primary server as it houses our
administration users home directories and my documents. When we moved these
users I had all kinds of trouble with them not pulling the profiles like it
should have and from the proper server. But since I am not changing the
machines name, I don' think I will have similar issues. Am I correct in
assuming this?
 
 
-- Donny B. On Monday, August 23, 2010 02:23 PM CDT, Donny Brooks <dbrooks@mdah.state.ms.us> wrote: > I am looking to move our current Samba primary domain controller to a new machine. The current machine is EOL, running Fedora 11 (old), and had way too many services on it to start with (mail, dns, samba, mysql replication, primary ldap, etc). I am looking to move to a Xen domu with either Fedora 13 or Centos 5.5. What my question is is this: > what should I look for when I migrate the samba install to the new machine. > > We use OpenLDAP backend for authentication if that matters for anything. I will most likely keep the machine name the same but will change the IP. I know in the other servers that we have that rely on this one as the PDC I will need to change every reference of its IP address. But I am making sure there is not any "gotcha" deals. > -- > > Donny B. > -- > To unsubscribe from this list go to the following URL and read the > instructions: https://lists.samba.org/mailman/options/samba -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba