Results 1 to 8 of 8

Thread: Zimbra 7 Bulk Provision

  1. #1
    Join Date
    Aug 2009
    Location
    Bulgaria
    Posts
    25
    Rep Power
    6

    Default Zimbra 7 Bulk Provision

    Hello,

    As far as i can see the Bulk Provisioning feature is not available anymore. What's the recommended substitution for it ?

    Thanks.

  2. #2
    Join Date
    Sep 2006
    Location
    Davis, CA
    Posts
    64
    Rep Power
    9

    Default

    As in Bulk Provisioning - Zimbra :: Wiki ?
    Why do you say that? ZCS 7 still has zmprov.

  3. #3
    Join Date
    Aug 2009
    Location
    Bulgaria
    Posts
    25
    Rep Power
    6

    Default

    Hey,

    I'm talking about the Bulk Provision zimlet. I can't make it work in zimbra 7 ( it does not show up at all ). It was an easy way to create a lot of accounts. I know there's a new Migration Wizard option, but i can't find anywhere how to import normal ( not exchange or zimbra ) accounts in a xml in it.

  4. #4
    Join Date
    Feb 2011
    Posts
    2
    Rep Power
    4

    Default

    Quote Originally Posted by n.bochev View Post
    Hey,

    I'm talking about the Bulk Provision zimlet. I can't make it work in zimbra 7 ( it does not show up at all ). It was an easy way to create a lot of accounts. I know there's a new Migration Wizard option, but i can't find anywhere how to import normal ( not exchange or zimbra ) accounts in a xml in it.
    Hi,

    Were you able to bulk import from a CSV?
    Can you please share the steps if you have done that.

    Thanks in advance

  5. #5
    Join Date
    Aug 2009
    Location
    Bulgaria
    Posts
    25
    Rep Power
    6

    Default

    No, unfortunately i cannot make it work in zimbra 7.

  6. #6
    Join Date
    Aug 2008
    Posts
    7
    Rep Power
    7

    Default

    use this script and it will all users:
    1 - add all users information in a txt file and name it users.txt
    2- users.txt should contains information like this example:
    username:user_password:First Name Lastname
    3- copy users.txt to server tmp folder
    4- create bash script and name it users.sh on tmp folder contains this script
    #!/bin/sh
    INFILE=users.txt
    DOMAIN=domain.com
    for line in $(seq 1 `cat $INFILE | wc -l`); do
    LINE=`cat $INFILE | head -$line | tail -1`
    username=`echo $LINE | cut -d: -f1`
    password=`echo $LINE | cut -d: -f2`
    fullname="`echo $LINE | cut -d: -f3`"
    firstname=`echo $fullname | cut -d" " -f1`
    lastname=`echo $fullname | awk -F' ' '{print $NF}'`
    echo zmprov createAccount $username@$DOMAIN $password displayName \""$fullname"\" sn $lastname givenName $firstname
    done

    5- change domain.com to your domain
    6- chmod 777 users.txt users.sh
    7- su zimbra
    8- run users.sh from tmp folder like this : [zimbra@email tmp]$ ./users.sh >final.sh
    9- final.sh file will be created, after finish change file mode to be like chmod 777 final.sh
    10- run the final.sh file and you will get all users added to zimbra

    enjoy
    Thanks
    gyt

  7. #7
    Join Date
    Aug 2009
    Location
    Bulgaria
    Posts
    25
    Rep Power
    6

    Default

    Quote Originally Posted by gyt View Post
    use this script and it will all users:
    1 - add all users information in a txt file and name it users.txt
    2- users.txt should contains information like this example:
    username:user_password:First Name Lastname
    3- copy users.txt to server tmp folder
    4- create bash script and name it users.sh on tmp folder contains this script
    #!/bin/sh
    INFILE=users.txt
    DOMAIN=domain.com
    for line in $(seq 1 `cat $INFILE | wc -l`); do
    LINE=`cat $INFILE | head -$line | tail -1`
    username=`echo $LINE | cut -d: -f1`
    password=`echo $LINE | cut -d: -f2`
    fullname="`echo $LINE | cut -d: -f3`"
    firstname=`echo $fullname | cut -d" " -f1`
    lastname=`echo $fullname | awk -F' ' '{print $NF}'`
    echo zmprov createAccount $username@$DOMAIN $password displayName \""$fullname"\" sn $lastname givenName $firstname
    done

    5- change domain.com to your domain
    6- chmod 777 users.txt users.sh
    7- su zimbra
    8- run users.sh from tmp folder like this : [zimbra@email tmp]$ ./users.sh >final.sh
    9- final.sh file will be created, after finish change file mode to be like chmod 777 final.sh
    10- run the final.sh file and you will get all users added to zimbra

    enjoy
    Yeh, i have written a more elaborate script in python, that's not really my point. I haven't seen changelog that the Bulk Import is deprecated etc, and i liked how you can add users through the interface , even with empty passwords etc.

  8. #8
    Join Date
    Apr 2007
    Location
    Kajang, Selangor, Malaysia
    Posts
    122
    Rep Power
    8

    Default

    Any update on this ? Bulk provisioning is very important to us since we need to create few thousand students id..
    Rgds;
    Matnor

Similar Threads

  1. Old Backup stay in TO_DELETE status and no clearing..
    By bartounet in forum Administrators
    Replies: 0
    Last Post: 10-05-2010, 07:40 AM
  2. Replies: 9
    Last Post: 03-01-2008, 07:21 PM
  3. Major Issue - 5.0RC2 NE to 5.0GA NE failed
    By DougWare in forum Installation
    Replies: 7
    Last Post: 01-06-2008, 08:56 PM
  4. Zimbra shutdowns every n hours.
    By Andrewb in forum Administrators
    Replies: 13
    Last Post: 08-14-2007, 08:55 AM
  5. Can't start Zimbra!
    By zibra in forum Administrators
    Replies: 5
    Last Post: 03-22-2007, 11:34 AM

Posting Permissions

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