Change password hash algorithm

SirAdminALot

New member
Joined
Jun 28, 2012
Messages
2
Hi,

I'm trying to change the hash algorithm of my Dovecot server from MD5 to SSHA256. I wanted to generate the new hash when a user is logging in, because than I have the plain password. But it seems that this is not so easy. I don't know how to store the password, so that I can easily run a script with it.

I'm running Dovecot 1.2.15 on Debian Squeeze.

I hope you have any tips for me ;)
 

zEitEr

Super Moderator
Joined
Apr 11, 2005
Messages
14,159
Location
GMT +7.00
Hello,

What you want to do? To change password of an email account as soon as a user login into his email box? Right?
 

SirAdminALot

New member
Joined
Jun 28, 2012
Messages
2
Not exactly. My users are stored in a MySQL table. I added a new column called "new_password" where the new SSHA256 hashes should be stored. So if a user is logging in, the new hash should be generated and stored there. After a while I should have the most of the passwords in SSHA256, so I can change the dovecot-password-query to use the new column instead of the old (where the MD5 hashes are).
 

nobaloney

NoBaloney Internet Svcs - In Memoriam †
Joined
Jun 16, 2003
Messages
26,119
Location
California
This is a DirectAdmin forum. You may need to find a more generic forum, as we're using DirectAdmin, which does not use MySQL to store users.

Jeff
 
Top