[Postfixadmin-devel] [patch] native SSHA (dovecot compatible) support
Brought to you by:
christian_boltz,
gingerdog
From: Laurento F. <lau...@gm...> - 2010-03-16 15:04:13
|
Hi all, another simple patch against postfixadmin-2.3 to add "SSHA native support" because the existing dovecotpw based solution doesn't work at all with SSHA. NOTE: The patch needs 'mhash' php function library. The generated passwords *WORK* with dovecot as expected (I'm using it and developed it with this goal in mind). --- DEV NOTES --- I think we need to rewrite the password check code in a way like I did for the new password_verify(). Actually I only wrote the 'ssha' part and simply fallback to the original pacrypt() approach for the other cases. PS: I found the original SSHA generation/verify code on the php.net website ( http://www.php.net/manual/en/function.md5.php#40225 ) Cheers, Laurento |