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

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 05-13-2010, 02:22 PM
Member
 
Posts: 11
Default [SOLVED] How to Import LDIF data into ZCS OpenSource Edition

Hi-

I hope this is the right place to ask this question, I am very new to zimbra.

I successfully installed ZCS OpenSource edition on Ubuntu, and had success with setting up and creating some users. So with our test, sending and receiving emails are working, and no problems with it.

However, I was recently handed an LDIF file and asked to import it into Zimbra.
I can't seem to figure out how to do this.

I tried the procedure mentioned in this blog:
Exporting and Importing Zimbra LDAP Data » Zimbra :: Blog

and did not have any success with it (The post might be very old).

From the Administation console, I saw the "Bulk Provision" button but it requires a csv file to import. So I ended up trying to convert ldif into csv with the procedure mentioned here:

Frederik Orellana’s blog Blog Archive Zimbra, ldif and backup

but when I try to upload the csv ,I get this following error:

"Server error occured
Message : system failure: java.lang.ArrayIndexOutofBoundsException: 1
Error Code: service.Failure Method: GetBulkProvisionAccountsRequest
Details:soap:Receiver"

My ldif looks like this:

dn: cn=......,mail=.......
objectclass: top
objectclass: person
objectclass: organizationalPerson
objectclass: inetOrgPerson
objectclass: mozillaAbPersonAlpha
givenName: <name>
sn: .....
cn: .....
mail: ......
modifytimestamp: 0Z

dn: cn=......,mail=........
objectclass: top
objectclass: person
objectclass: organizationalPerson
objectclass: inetOrgPerson
objectclass: mozillaAbPersonAlpha
givenName: <name>
sn: .....
cn: .....
mail: .....
modifytimestamp: 0Z
homePhone: ......
homeStreet: .....
mozillaHomeLocalityName: ....
mozillaHomeState: ...
mozillaHomePostalCode: ......

....

There are actual entries up above instead of the dots, I just removed them to post in here.

Can somebody direct me to an how-to for uploading an LDIF file into ZCS? or can somebody give me some pointers where to look on how to do this?

Please let me know if you need more information.....

I really appreciated it,
Thanks
Deniz.
Reply With Quote
  #2 (permalink)  
Old 05-14-2010, 06:41 AM
Moderator
 
Posts: 7,928
Default

The Perl script you referenced is for converting LDIF into a CSV for contacts and not new accounts.
__________________
Reply With Quote
  #3 (permalink)  
Old 05-14-2010, 01:18 PM
Member
 
Posts: 11
Default

Thanks, actually I figured out the problem.

I got a csv instead of ldif.....
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.