[sork] Fwd: sorry again

Eric Rostetter eric.rostetter at physics.utexas.edu
Fri Dec 6 22:18:02 2002


Here is new patch, and some explaination.  Still open for comments...
This patch is starting to make more sense to me though...  Still not sure
it is 100% currect though...  Anyone???

----- Forwarded message from anton@valuehost.ru -----
    Date: Sat, 7 Dec 2002 00:51:32 +0300
    From: Anton Nekhoroshikh <anton@valuehost.ru>
Reply-To: Anton Nekhoroshikh <anton@valuehost.ru>
 Subject: sorry again
      To: Eric Rostetter <eric.rostetter@physics.utexas.edu>

Hi, Eric.

Forgive once again, laziness was diff to make between my version and 1.7, as a
result of a mistake.

vpopmail maybe using mix crypt CRYPT_STD_DES or CRYPT_MD5, therefore
"{crypt}" spoils a little to us.


cvs diff Driver.php (in directory C:\projects\valuehost\horde\passwd\lib\)
Index: Driver.php
===================================================================
RCS file: /repository/passwd/lib/Driver.php,v
retrieving revision 1.7
diff -r1.7 Driver.php
100d99
<                 $encrypted = substr($encrypted, 7);
101a101,103
>               if(preg_match('/^\$1\$(.*)\$(.*)/',$encrypted,$match)){
>                $salt='$1$'.$match[1].'$';
>               }
153c155
<                 $newPassword = "{crypt}" . crypt($newPassword);
---
>                 $newPassword = crypt($newPassword);


*****CVS exited normally with code 1*****



-- 
 Anton                          mailto:anton@valuehost.ru


----- End forwarded message -----


-- 
Eric Rostetter
The Department of Physics
The University of Texas at Austin

Why get even? Get odd!


More information about the sork mailing list