[Samba] PDC migration from suse 8.2 - samba 2.2.7 ldap - to latest versions on ubuntu 8.04

John H Terpstra jht at samba.org
Thu Mar 25 07:00:40 MDT 2010

On 03/25/2010 03:33 AM, Vladimir Psenicka wrote:
> What about Debian Stable with Sernet samba repo, where you can choose
> Samba 3.4.x or 3.5.x
> My hints on migrating to new server:
> 1. install new server (Samba,ldap etc.)
> 2. set same hostname on new server
> 3. export ldap data from old server and import them to new server

Ensure that all local user and group accounts that are used by samba
have the same uid/gid.

> 4. export SID (net getlocalsid) and set it on new server (net
> setlocalsid oldsid)

  net getdomainsid (on old server)
  net setdomainsid (on new server)

> 5. configure samba on new server as PDC with ldap and shares in smb.conf
> from old samba smb.conf (check with testparm)
> 6. stop samba on old server
> 7. copy all data (with perms) and netlogon share to new server
> 8. stop old server
> 9. start samba on new server a check everything is working fine (domain
> logon from windows box, shares and perms)
> This can be done best when no users are logged in samba (maybe at weekend?)
> P.S. We have ubuntu 8.04 as PDC and Windows 7 can't join to domain

Check http://wiki.samba.org for info regarding Windows 7.

John T.

> Dne 25.3.2010 01:05, GG napsal(a):
>> Hello Vladimir and hi all,
>> Thanks very much for replying!
>> Any suggested os? I'd go for debian or what advised, I just happen to
>> know ubuntu more...
>> Any strategy or hint on migrating from ancient ldap + samba to a new server?
>> Already tried rsyncing (using all options to keep perms and attributes
>> grp  own mod etc) on a twin v-machine but server starts and the ldap
>> auth fails to work :-(
>> I'm a bit stuck at the moment :-( and I have posponed the problem for
>> too long grrr
>> Giorgio
>> On Wed, Mar 24, 2010 at 9:20 AM, Vladimir Psenicka
>> <vladimir.psenicka at prodeco.cz> wrote:
>>> Dne 23.3.2010 15:48, Giorgio napsal(a):
>>>> Hello,
>>>> Hopefully I'm in the right place asking for help :-)
>>>> I need to move from an old physical Suse 8.2 - samba 2.2.7 + ldap - to
>>>> latest samba versions, I would like to use an ubuntu 8.04 virtual machine.
>>>> The domain is in production on the physical server, to be dismissed after
>>>> migration. It is also the file server!!! so /DATA/ has all shared and
>>>> permission driven file access..
>>>> I was following https://help.ubuntu.com/8.10/serverguide/C/samba-dc.html but
>>>> I realize I am in a different scenario...
>>>> Production so no errors are admitted :-(, migration to new os and versions..
>>>> all at once?
>>>> I have a dump of the physical server (dd sda mbr and single partitions :)
>>>> plus an rsync with all permissions daily backup, just to be safe ;)
>>>> What would you guru's suggest as a strategy?
>>>> Can I create a new server and add it as secondary domain controller and then
>>>> once the replica is up? I'd feel quite comfortable with this method.
>>>> BTW I need a new version of samba as they have already bought Windows 7
>>>> boxes (without asking if they were supported arrgh).
>>>> Thanks to all of you who read or answered :-)
>>>> Gio
>>> Hi.
>>> Ubuntu 8.10 is bad idea if you will be connecting Windows 7 into domain,
>>> because of old Samba version. Samba 3.4.x or 3.5.x is recommended for
>>> Win7. Wait for Ubuntu 10.04 LTS (next month) if you want Ubuntu.
>>> --
>>> Vladimir Psenicka
>>> --
>>> To unsubscribe from this list go to the following URL and read the
>>> instructions:  https://lists.samba.org/mailman/options/samba

More information about the samba mailing list