Page 3 of 3 FirstFirst 123
Results 21 to 22 of 22

Thread: Migration wizard ZCS 5 to ZCS 8

  1. #21
    minhhoang is offline Active Member
    Join Date
    Jun 2013
    Location
    Vietnam
    Posts
    28
    Rep Power
    2

    Default

    Many thanks scott.serr, with your help I carried out the first step successfully. To confirm:
    1. I login as zimbra on old server, copy and paste the code
    [zimbra@mail ~]$ zmprov getAlldomains
    spt.vn
    [zimbra@mail ~]$ echo "# Create domains"
    # Create domains
    [zimbra@mail ~]$ for f in $(zmprov getAllDomains); do
    > echo "zmprov createDomain $f"
    > done
    zmprov createDomain spt.vn
    [zimbra@mail ~]$
    I also looked for basic "for loop" and understand the first piece now . Now I understand that the output of first script is a file containing commands to create domains and accounts as well as password?
    I don't need to export and import email, so i don't need the second script, do I?
    Another question, password is encrypted so how can we import it to new zimbra server?

    One again, I truly appreciate your help.
    Minh.

  2. #22
    minhhoang is offline Active Member
    Join Date
    Jun 2013
    Location
    Vietnam
    Posts
    28
    Rep Power
    2

    Default

    I got more information on this and everything goes well now. The main idea is we need to modify user account with hashed password to make zimbra translating those "hashed password" back to "pure password" which user can use to login to mailbox.
    The export-script:
    for i in `zmprov -l gaa | egrep -v 'galsync|spam|ham|virus|stimpson'`;do \
    echo "$i,`zmprov -l ga $i userPassword | grep userPassword | \
    sed 's/userPassword: //'`";\
    done;
    Redirect the output to userlist.txt and send it to the new server.

    The import-script.
    #!/bin/bash
    for i in `cat userlist.txt`
    do
    zmprov ca `echo $i | awk -F, '{print $1 " " $2}'`
    zmprov ma `echo $i | awk -F, '{print $1 " userPassword " $2}'`
    done
    Just finish this in the LAB and I don't know how long does it take with 1000 accounts If you have any improvement to push the process, please let me know.

Page 3 of 3 FirstFirst 123

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. migration wizard
    By maybethistime in forum Zimbra Connector for Outlook
    Replies: 17
    Last Post: 06-17-2011, 07:47 AM
  2. RPC Errors with Migration Wizard
    By paulhlee1967 in forum Migration
    Replies: 0
    Last Post: 02-15-2011, 08:52 AM
  3. ZCS Migration Wizard for Domino
    By viaris in forum Migration
    Replies: 0
    Last Post: 06-18-2009, 09:45 AM
  4. exchange migration wizard
    By oxy in forum Migration
    Replies: 2
    Last Post: 09-25-2008, 01:59 PM
  5. Migration wizard for exchange
    By chandu in forum Migration
    Replies: 2
    Last Post: 12-27-2007, 12:51 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •