Author Topic: How to migrate from an old SAMBA to Zentyal  (Read 1433 times)

eduengler

  • Zen Apprentice
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
How to migrate from an old SAMBA to Zentyal
« on: December 16, 2019, 06:43:03 pm »
Hello people
I want to migrate users and permissions from old SAMBA in ADDC
but no GPOs applied
users, group and folder access permissions only

How do I do this migration?
I thought to copy users and groups to Zentyal
and use the same hard drives, the same IP, etc.

but I don't know how to do that

if anyone can tell me how or send me a tutorial, (even in another language)
appreciate

Is configuring Zentyal as an additional domain controller an option?
How to proceed with the same hard drives?

doncamilo

  • Zen Samurai
  • ****
  • Posts: 478
  • Karma: +165/-1
    • View Profile
Re: How to migrate from an old SAMBA to Zentyal
« Reply #1 on: December 18, 2019, 10:30:43 am »
 :)

Zentyal 6.1 provides some scripts to import/export users and groups. You can use them in older versions of Zentyal too. You can download them from here https://github.com/zentyal/zentyal/blob/master/main/samba/src/scripts/users-export.pl, https://github.com/zentyal/zentyal/blob/master/main/samba/src/scripts/users-import.pl, https://github.com/zentyal/zentyal/blob/master/main/samba/src/scripts/groups-import.pl, https://github.com/zentyal/zentyal/blob/master/main/samba/src/scripts/groups-export.pl

These scripts work with csv files. So, it should be easy to import users and groups if you are able to build from your old system the csv files with the expected structure (view the source code or tell me if you need some more help)

You'll have to copy the shares to the new server. You can use the 'tar' command with the --acls -cpvf options (man tar) to copy it with acls and permissions but before you have to create these shares in the Zentyal Filse Sharing interface with their respective acls. Afterwards you can copy the content of the respective resources to the folders created by Zentyal.

Zentyal as additional domain controller will replicate the LDB database, so the users and groups, but shares and users data would be managed from the old server.

Cheers!
- Do my pigeons bother you passing over your land?
- They block the sun!

G. Guareschi., Don Camillo.,