Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Migration

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-15-2011, 07:51 AM
Intermediate Member
 
Posts: 24
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.
Reply With Quote
  #2 (permalink)  
Old 02-16-2011, 09:17 PM
Senior Member
 
Posts: 61
Default

As in Bulk Provisioning - Zimbra :: Wiki ?
Why do you say that? ZCS 7 still has zmprov.
Reply With Quote
  #3 (permalink)  
Old 02-16-2011, 10:19 PM
Intermediate Member
 
Posts: 24
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.
Reply With Quote
  #4 (permalink)  
Old 02-23-2011, 01:28 AM
Starter Member
 
Posts: 2
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
Reply With Quote
  #5 (permalink)  
Old 02-23-2011, 06:14 AM
Intermediate Member
 
Posts: 24
Default

No, unfortunately i cannot make it work in zimbra 7.
Reply With Quote
  #6 (permalink)  
Old 02-23-2011, 06:59 AM
gyt gyt is offline
Junior Member
 
Posts: 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
Reply With Quote
  #7 (permalink)  
Old 02-23-2011, 07:03 AM
Intermediate Member
 
Posts: 24
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.
Reply With Quote
  #8 (permalink)  
Old 06-06-2011, 01:56 AM
Loyal Member
 
Posts: 97
Default

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


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.