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 10-21-2009, 07:14 AM
Junior Member
 
Posts: 9
Default How to save user pass.

Friends all right?

Sorry for bad English, but I'm Brazilian. =)

I need to backup the passwords used today in my zimbra server.

I need to import those passwords in any place, to import on a server with only postfix + mysql.

Already could get the users that are in MySQL but the passwords did not.

Please, where I think these passwords?
Reply With Quote
  #2 (permalink)  
Old 10-21-2009, 11:51 AM
Loyal Member
 
Posts: 91
Default

You can get the encrypted password out of ldap by running:

ldapsearch -x -W -D "uid=zimbra,cn=admins,cn=zimbra" -b 'dc=domain,dc=com' -h zimbraldaphost.domain.com '(uid=username)' userPassword

You then have to enter the ldap zimbra/admin password. If you don't know the password you can get it by running:
zmlocalconfig -s ldap_root_password
Reply With Quote
  #3 (permalink)  
Old 10-24-2009, 11:26 PM
Member
 
Posts: 12
Default

How could I then use the encrypted password to create the user in another zimbra server?

zmprov ma user@domain.com userPassword '{SSHA}encryptedpassword'

is that correct?
Reply With Quote
  #4 (permalink)  
Old 10-26-2009, 06:42 AM
Loyal Member
 
Posts: 91
Default

Not quite. You would have to run the command:
zmprov ma user@domain.com userPassword 'temppassword'
because zmprov is expecting an unencrypted password. After you create the account you would then have to replace the temporary password in ldap with the encrypted one from the old server with ldapmodify:
ldapmodify -x -W -D "uid=zimbra,cn=admins,cn=zimbra" -b 'dc=domain,dc=com' -h zimbraldaphost.domain.com '(uid=username)' -f file_with_modify_commands

With the filing looking something like:
dn: uid=username,ou=people,dc=doman,dc=com
changetype: modify
replace: userPassword
userPassword: {SSHA}encryptedpassword
Reply With Quote
  #5 (permalink)  
Old 10-26-2009, 12:02 PM
Member
 
Posts: 12
Default encrypted passwords

Do you know if there is a difference between {SSHA} and {crypt} in the 'zmprov ma' command? I was able to import some old Unix crypt passwords using zmprov ma without needing to use ldapmodify. This is Zimbra v6.0.1.

The command I used was:
zmprov ma "user@domain" userPassword "{crypt}EncryptedPassword"
I haven't tried using SSHA passwords yet so I didn't know if that would fail down the road (just in the provisioning stage, not yet in production).
TomL
Reply With Quote
  #6 (permalink)  
Old 10-27-2009, 06:52 AM
Outstanding Member
 
Posts: 593
Default

I think you can import using {SSHA}encryptedpassword as well
Reply With Quote
  #7 (permalink)  
Old 10-27-2009, 07:09 AM
Loyal Member
 
Posts: 91
Default

Interesting, I had no idea zmprov supported created an account using the encrypted password. Good to know!
Reply With Quote
  #8 (permalink)  
Old 06-21-2010, 09:27 PM
Elite Member
 
Posts: 332
Default

Quote:
Originally Posted by TomL View Post
Do you know if there is a difference between {SSHA} and {crypt} in the 'zmprov ma' command? I was able to import some old Unix crypt passwords using zmprov ma without needing to use ldapmodify. This is Zimbra v6.0.1.

The command I used was:
zmprov ma "user@domain" userPassword "{crypt}EncryptedPassword"
I haven't tried using SSHA passwords yet so I didn't know if that would fail down the road (just in the provisioning stage, not yet in production).
TomL
I've try the above command with {SSHA} but it failed (produced different SSHA on LDAP and I could not login with the 'correct' password)

Maybe this link make a clear explanation : The SSHA Password Storage Scheme

Maybe someone else has successful attempt to insert Zimbra Account+Password with SSHA encoding without using ldapmodify ?
__________________
Best Regards
---
Masim "Vavai" Sugianto
Vavai Personal Blog
Personal Blog [ID]

Release 7.1.3_GA_3346.SLES11_64_20110930001521 SLES11_64 FOSS edition.
Reply With Quote
  #9 (permalink)  
Old 01-19-2012, 01:54 PM
Starter Member
 
Posts: 1
Default

please how can i manage to login without user name and password. please i'm new here
Reply With Quote
  #10 (permalink)  
Old 01-19-2012, 01:59 PM
Zimbra Consultant & Moderator
 
Posts: 19,633
Default

Quote:
Originally Posted by doggededdy View Post
please how can i manage to login without user name and password. please i'm new here
Your question has nothing to do with this thread. For the record, you can't login without a username and password.
__________________
Regards


Bill
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.