FW: [sork] passwd/vpopmail

Chip Bell cbell at msbv.com
Sat May 15 11:20:06 PDT 2004


I can't WAIT to get to work and try this out.  The issue has been
driving me NUTS.

-----Original Message-----
From: Jack Liu [mailto:jackliu at firstig.com] 
Sent: Saturday, May 15, 2004 1:22 AM
To: sork at lists.horde.org
Subject: [sork] passwd/vpopmail

Here's what I did to fix the problem.

in the Driver.php file, change this line:

$newPassword = "{crypt}" . crypt($newPassword);

to this:

$newPassword = crypt($newPassword);

in the vpopmail.php file, comment out these two lines:

$encrypted = substr($encrypted, 7);
$salt = substr($encrypted , 0, 2);

and change this line:

if ($encrypted == crypt($plaintext, $salt)) {

to this:

if ($encrypted == crypt($plaintext, $encrypted)) {


The encrypted string that the unmodified code was returning did not even

come close to matching the original password in the database.  Not sure 
why it was off by so much.  Anyway,  I hope this helps!


-- 
Sork mailing list - Join the hunt: http://horde.org/bounties/#sork
Frequently Asked Questions: http://horde.org/faq/
To unsubscribe, mail: sork-unsubscribe at lists.horde.org


More information about the sork mailing list