[sork] Re: passwd+vpopmail is driving me insane

Simon Detheridge simon at highlyillogical.org
Tue Apr 27 09:43:34 PDT 2004


I'm having exactly the same problems. Same versions. Also on Gentoo.

Has anybody made this work?

Simon



Scott Ferry wrote:

> err..vpopmail 5.4.0
> 
> ----- Original Message -----
> From: "Scott Ferry" <scott at ancients.net>
> To: <sork at lists.horde.org>
> Sent: Friday, April 09, 2004 4:47 AM
> Subject: [sork] passwd+vpopmail is driving me insane
> 
> 
>> 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;
>>
>>
>> --
>> 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