Topic: Mysql storage password formats

Hi all,

I'm trying to create a php script that will add users to the mysql DB on the fly, I'm not too familiar with encryption types and have no idea what kindof encryption the password fields use, can you fill me in on this?


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


Re: Mysql storage password formats

iRedMail stores (salted) MD5 encrypted passwords for MySQL and PostgreSQL backends by default. Example:


- Plain MD5 is supported too. Example: 900150983cd24fb0d6963f7d28e17f72, {PLAIN-MD5}900150983cd24fb0d6963f7d28e17f72.
- Plain password is supported, but it's not recommended. Don't use it on production server.
- Upcoming iRedAdmin (both open source edition and iRedAdmin-Pro) supports SSHA and SSHA512 encrypted passwords.
  Reference: http://www.iredmail.org/forum/topic4220 … ha512.html

Refer to Dovecot wiki for more password schemes: http://wiki2.dovecot.org/Authentication/PasswordSchemes


Does my reply help a little? How about buying me a cup of coffee ($5) as an encouragement?

buy me a cup of coffee


Re: Mysql storage password formats

Thanks dude! Got it working smile