1

Topic: Import crypted passwords

==== Required information ====
- iRedMail version:
- Store mail accounts in which backend (LDAP/MySQL/PGSQL):
- Linux/BSD distribution name and version:
- Related log if you're reporting an issue:
====Hello,

I want to migrate my old mailserver using MYSQL database to my brand new Iredmail PRO using LDAP.

I try create_mail_user_OpenLDAP.py script to create accounts, and it works fine.

PROBLEM !  Password filed must be filled in clear mode, but my old server use different mode in Mysql dump.

For exemple, a password from my old server : $1$84f0bc38$QnY78hzEeIalRYGHcWw5U/

Is there a way to import crypted password in LDAP database ?
I don't know passwords used by users of course. They can change it as they like.

That for any idea.

Best regards,
Laurent
==== Required information ====
- iRedMail version: 2.0
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): LDAP
- Linux/BSD distribution name and version: Debian 7 Wheezy
- Related log if you're reporting an issue: None
====

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: Import crypted passwords

lrayssiguier wrote:

For exemple, a password from my old server : $1$84f0bc38$QnY78hzEeIalRYGHcWw5U/

This is a standard salted MD5 hash, so please just prepend '{crypt}' (without quotes) in your password hash, then add it in clear mode.
For example:

userPassword: {crypt}$1$84f0bc38$QnY78hzEeIalRYGHcWw5U/

3 (edited by lrayssiguier 2013-10-01 14:16:34)

Re: Import crypted passwords

Cool That Works !!
Thanks ZhangHuangbin.