Results 1 to 9 of 9

Thread: How to save user pass.

  1. #1
    thiagotgc's Avatar
    thiagotgc is offline Active Member
    Join Date
    Jul 2008
    Posts
    30
    Rep Power
    7

    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?

  2. #2
    cayaraa's Avatar
    cayaraa is offline Special Member
    Join Date
    Jul 2009
    Posts
    106
    Rep Power
    6

    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

  3. #3
    jaydorado is offline Member
    Join Date
    Oct 2009
    Posts
    12
    Rep Power
    5

    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?

  4. #4
    cayaraa's Avatar
    cayaraa is offline Special Member
    Join Date
    Jul 2009
    Posts
    106
    Rep Power
    6

    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

  5. #5
    TomL is offline Intermediate Member
    Join Date
    Oct 2009
    Location
    Corvallis, Oregon, USA
    Posts
    17
    Rep Power
    5

    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

  6. #6
    veronica is offline Outstanding Member
    Join Date
    Jun 2008
    Posts
    594
    Rep Power
    8

    Default

    I think you can import using {SSHA}encryptedpassword as well

  7. #7
    cayaraa's Avatar
    cayaraa is offline Special Member
    Join Date
    Jul 2009
    Posts
    106
    Rep Power
    6

    Default

    Interesting, I had no idea zmprov supported created an account using the encrypted password. Good to know!

  8. #8
    doggededdy is offline Starter Member
    Join Date
    Jan 2012
    Posts
    1
    Rep Power
    3

    Default

    please how can i manage to login without user name and password. please i'm new here

  9. #9
    phoenix is online now Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,569
    Rep Power
    57

    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


    Acompli: A new adventure for Co-Founder KevinH.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 21
    Last Post: 02-04-2010, 10:06 AM
  2. [SOLVED] Zimbra logwatch.
    By nishith in forum Administrators
    Replies: 5
    Last Post: 06-10-2009, 04:42 PM
  3. Post instsallation problems
    By Assaf in forum Installation
    Replies: 14
    Last Post: 01-29-2007, 11:38 AM
  4. Services stopped working
    By lilwong in forum Administrators
    Replies: 4
    Last Post: 08-15-2006, 09:19 AM
  5. Fedora Core 3, Clean Install - Not working!
    By pcjackson in forum Installation
    Replies: 17
    Last Post: 03-05-2006, 07:38 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •