Results 1 to 5 of 5

Thread: Export Passwords from Zimbra

  1. #1
    Join Date
    Oct 2009
    Posts
    29
    Rep Power
    6

    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.

  2. #2
    Join Date
    Dec 2006
    Location
    Minneapolis MN
    Posts
    777
    Rep Power
    9

    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

  3. #3
    Join Date
    Oct 2009
    Posts
    29
    Rep Power
    6

    Default

    Brilliant. That's exactly what I needed, thank you!

  4. #4
    Join Date
    Oct 2010
    Posts
    373
    Rep Power
    5

    Default

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

    perl -MMIME::Base64 -e 'print decode_base64("e1NTSEF9TVl3ODZCN1F5MEZqeWuT2JmT2F2 eWtxR2M0Y2JLVlk=")'

  5. #5
    Join Date
    Sep 2011
    Posts
    17
    Rep Power
    4

    Default

    Thank you very much. This line command solved problem!

    Thanks
    Robson

Similar Threads

  1. Big Fubar on 5 FOSS GA Upgrade
    By uxbod in forum Administrators
    Replies: 24
    Last Post: 01-21-2008, 02:37 AM
  2. Replies: 31
    Last Post: 12-15-2007, 08:05 PM
  3. zmtlsctl give LDAP error
    By sourcehound in forum Administrators
    Replies: 5
    Last Post: 03-11-2007, 03:48 PM
  4. Replies: 8
    Last Post: 02-27-2007, 03:10 AM
  5. huge log size
    By rmvg in forum Administrators
    Replies: 5
    Last Post: 01-02-2007, 09:39 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
  •