squirrelmail - imap auth problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



We have random fails on login between squirrelmail and imap.
The password is posted to imap with a random length.

This is workaround we're trying in functions/strings.php:

function OneTimePadEncrypt ($string, $epad) {
     $pad = base64_decode($epad);
     $encrypted = '';
     for ($i = 0; $i < strlen ($string); $i++) {
         $encrypted .= chr (ord($string[$i]) ^ ord($pad[$i]));
     }
     $pippo = base64_encode($encrypted);
     $pluto = OneTimePadDecrypt($pippo, $epad);
     if ($string != $pluto) {
         return OneTimePadEncrypt($string, $epad);
     }
     else {
         return $pippo;
     }
}


Our sistem (Debian stable):
Os:
Linux 2.4.27-2-386

php:
PHP 4.3.10-18 (cli) (built: Nov  3 2006 21:56:29)
Copyright (c) 1997-2004 The PHP Group
Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies

Apache:
Server version: Apache/2.0.54
Server built:   Jul 28 2006 09:04:55

squirrelmail:
SquirrelMail version 1.4.4	

Courier (from dselect):
courier-imap 3.0.8-4sarge

Thanks in advance!
Regards.

-- 
Angelo Alerta
MAINFIELD S.r.l.
Via Melchiorre Gioia n. 168
20125 – MILANO (MI)
Tel 02/667.039.76
Tel 02/454.751.20
Fax 02/700.573.21
a.alerta@xxxxxxxxxxxxx
www.mainfield.com


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
--
squirrelmail-users mailing list
Posting Guidelines: http://www.squirrelmail.org/wiki/MailingListPostingGuidelines
List Address: squirrelmail-users@xxxxxxxxxxxxxxxxxxxxx
List Archives: http://news.gmane.org/thread.php?group=gmane.mail.squirrelmail.user
List Archives:  http://sourceforge.net/mailarchive/forum.php?forum_id=2995
List Info: https://lists.sourceforge.net/lists/listinfo/squirrelmail-users


[Index of Archives]     [Video For Linux]     [Yosemite News]     [Yosemite Photos]     [gtk]     [KDE]     [Cyrus SASL]     [Gimp on Windows]     [Steve's Art]     [Webcams]

  Powered by Linux