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 07-13-2011, 01:48 PM
Active Member
 
Posts: 29
Default Export Passwords from Zimbra

I've been trying to export the passwords from Zimbra's LDAP to another OpenLDAP server, but I just can't seem to get the new passwords to work properly.

I have an exported ldif file with all the information I'm needing for my new server.

An example password in the ldif file looks like this

e1NTSEF9TVl3ODZCN1F5MEZqeWuT2JmT2F2eWtxR2M0Y2JLVlk =

When I import the ldif into my new LDAP server, and view it with Apache Directory Studio, some of the passwords show up with {SSHA}, some have {MD5}, and some just say "Plain text" but I'm thinking they should all be the same, and I know they shouldn't be "Plain text", since I've always added users through the Admin console, and have never changed our encryption type. Either way, none of the imported passwords work when I try to authenticate with the new LDAP server, I have to change the password manually and then I'm able to authenticate.

Any ideas on what I could do to get the passwords to work in a new LDAP server? Thanks!

Last edited by alapierre; 07-13-2011 at 02:00 PM..
Reply With Quote
  #2 (permalink)  
Old 07-14-2011, 07:38 AM
Outstanding Member
 
Posts: 717
Default

You are going to need to base64 decode that into something OpenLDAP can understand.

With the example password you showed, you would use:

Code:
perl -MMIME::Base64 -e 'print decode_base64("e1NTSEF9TVl3ODZCN1F5MEZqeWuT2JmT2F2eWtxR2M0Y2JLVlk=")
It should come back as plain human readable letters. If you see any binary characters, than the string you pasted in is not correct.

But it should show you something like:
Code:
{SSHA}dTQMYuj4DDzs6wAC7fb6sVrafYAHG7IN
and then you can set the password using that new string in the other OpenLDAP instance.
__________________
01 Networks, LLC / Cybernetik.net
Zimbra NE and OSS Cloud Hosting
Shared Web Hosting
Consulting Services
Reply With Quote
  #3 (permalink)  
Old 07-14-2011, 08:30 AM
Active Member
 
Posts: 29
Default

Brilliant. That's exactly what I needed, thank you!
Reply With Quote
  #4 (permalink)  
Old 07-14-2011, 01:00 PM
fyd fyd is offline
Elite Member
 
Posts: 373
Default

Nice piece of info, thanks. A single quotes is missing in the code though.

Quote:
perl -MMIME::Base64 -e 'print decode_base64("e1NTSEF9TVl3ODZCN1F5MEZqeWuT2JmT2F2 eWtxR2M0Y2JLVlk=")'
Reply With Quote
  #5 (permalink)  
Old 12-14-2011, 03:32 AM
ip2 ip2 is offline
Member
 
Posts: 11
Default

Thank you very much. This line command solved problem!

Thanks
Robson
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.