FW: [sork] passwd/vpopmail

Chip Bell cbell at msbv.com
Mon May 17 18:09:11 PDT 2004


Has anyone been able to find the $encrypted and/or $salt in their
vpopmail.php file?  I've gone over mine 100 times and can't.  Latest
stable version of passwd..

-----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