Enhancement #1655

Feature #1660: Migrate NethService to NethServer

Users and groups migration script

Added by Davide Principi over 6 years ago. Updated over 6 years ago.

Status:CLOSEDStart date:02/13/2013
Priority:NormalDue date:02/14/2013
Assignee:-% Done:

100%

Category:nethserver-directory
Target version:v6.4-alpha2
Resolution: NEEDINFO:

Description

Implement an action that migrates users and groups from a NethService backup directory into the accounts database.


Related issues

Related to NethServer 6 - Enhancement #1657: Migrate samba SAM DB in LDAP CLOSED 02/15/2013 02/25/2013

Associated revisions

Revision c075d2cf
Added by Davide Principi over 6 years ago

nethserver-directory-migrate action: import users, passwords, home directories and groups from NethService directory structure. Refs #1655

Revision 06ca65ac
Added by Davide Principi over 6 years ago

migration-import event: added nethserver-directory-migrate action. Refs #1655

Revision 6218df26
Added by Davide Principi over 6 years ago

nethserver-directory-migrate action: perl uses strict! Refs #1655

Revision 8abbf4ea
Added by Davide Principi over 6 years ago

NethServer::Migrate perl module: created with migrateDir() function from nethserver-directory package. Refs #1655

Revision ba7837f7
Added by Davide Principi over 6 years ago

nethserver-migrate-directory action: moved migrateDir() function in nethserver-lib package. Refs #1655

Revision aec6dd23
Added by Davide Principi over 6 years ago

nethserver-directory-migrate action: remove trailing newline that invalidates password hashes. Refs #1655

Revision bff28fdf
Added by Davide Principi over 6 years ago

nethserver-directory-migrate action: migrate root's and admin's data. Refs #1655

Revision 9a709252
Added by Davide Principi over 6 years ago

nethserver-directory-migrate action: fixed strftime() syntax call. Refs #1655

Revision ae34a7e7
Added by Davide Principi over 6 years ago

nethserver-directory-migrate action: root's home migration is performed by nethserver-base package. Refs #1655

Revision 70af2dc8
Added by Davide Principi over 6 years ago

nethserver-directory-migrate action: honour user's PasswordSet prop. Refs #1655

Revision 094ca92e
Added by Davide Principi almost 6 years ago

Migrate admin home directory. Refs #2492 #1655

History

#1 Updated by Davide Principi over 6 years ago

  • Status changed from ON_DEV to MODIFIED
  • % Done changed from 20 to 100

#2 Updated by Davide Principi over 6 years ago

  • Tracker changed from Feature to Enhancement
  • Parent task set to #1660

#3 Updated by Davide Principi over 6 years ago

  • Status changed from MODIFIED to ON_DEV
  • % Done changed from 100 to 90

Migrate admin's home directory files under ~admin/ or similar..

#4 Updated by Davide Principi over 6 years ago

  • Status changed from ON_DEV to MODIFIED
  • % Done changed from 90 to 100

Admin's home and root's home are migrated following these rules:

/home/e-smith/files/users/admin => /var/lib/nethserver/migration/admin
/root => /var/lib/nethserver/migration/root

Two symlinks are set under /root:

/root/root-migration-YYYYmmDDHHMMSS => ../var/lib/nethserver/migration/root
/root/admin-migration-YYYYmmDDHHMMSS => ../var/lib/nethserver/migration/admin

#5 Updated by Davide Principi over 6 years ago

  • Status changed from MODIFIED to ON_DEV
  • % Done changed from 100 to 80
  • Estimated time changed from 4.00 to 6.00

TODO:
honour locked password => locked account setting

#6 Updated by Davide Principi over 6 years ago

  • Status changed from ON_DEV to MODIFIED
  • % Done changed from 80 to 100

if PasswordSet=no user account is left in new state.

#7 Updated by Davide Principi over 6 years ago

  • Status changed from MODIFIED to CLOSED

#8 Updated by Davide Principi over 6 years ago

State set to closed on NethServer 6.4 alpha2 release

Also available in: Atom PDF