[sork] passwd+vpopmail is driving me insane

Scott Ferry scott at ancients.net
Fri Apr 9 01:47:14 PDT 2004


No matter what I do I keep getting 'Failure in changing password : Incorrect
Password'

I am currently using:
horde-2.2.5
passwd-2.2.1

I've tried all of the various encryption methods that passwd-2.2.1 supports
as well as crypt-md5.  I'm using gentoo linux.  vpopmail 4.5.0. umm..a
sample password from my database:  $1$h7/tTTXe$HIGpl0ukWm.v6f7RhpVUT.
It's 4:46am and my brain is fried.  Any help would be appriciated.


P.S.
I've added the following to Drivers.php with no luck:

<starting at line 106>
case 'crypt-md5':
           $salt = substr($encrypted , 0, 8);
             if ($encrypted == crypt($plaintext, $salt)) {
                   return true;
             }
            break;

<starting at line 165>
            case "crypt-md5":
                function randltr() {
                   $retval = ord('a');
                   $randnum = rand() % 64;
                   if ($randnum < 26) $retval = $randnum + ord('a');
                   if ($randnum > 25) $retval = $randnum - 26 + ord('A');
                   if ($randnum > 51) $retval = $randnum - 52 + ord('0');
                   if ($randnum == 62) $retval = ord(';');
                   if ($randnum == 63) $retval = ord('.');
                   return chr($retval);
                }
                $salt = '$1$' . randltr() . randltr() . randltr() .
randltr();
                $newPassword = crypt($newPassword,$salt);
                break;




More information about the sork mailing list