Hi
I've updated the version of PHP running on my Mac OSX server and the
new version includes mcrypt which I didn't have before. Since then
I've not been able to log in.
There appears to be a problem with the length of the initialization
vector being handed to the mcrypt function, the interesting thing
being that the length is changing each time: 11, 18, 9, 12.
The error logs show:
ali@buggles:/Library/Webserver/Documents/roundcube$ tail logs/errors
[10-Nov-2009 13:23:09] PHP Warning: mcrypt_generic_init()
[function.mcrypt-generic-init]: Iv size incorrect; supplied length:
11, needed: 8 in /Library/WebServer/Documents/roundcube/program/
include/rcmail.php on line 995
[10-Nov-2009 13:23:12 +0000]: IMAP Error: Authentication for ali
failed (LOGIN): "a001 NO Login failed." (GET /roundcube/?_task=mail)
[10-Nov-2009 13:36:59] PHP Warning: mcrypt_generic_init()
[function.mcrypt-generic-init]: Iv size incorrect; supplied length:
18, needed: 8 in /Library/WebServer/Documents/roundcube/program/
include/rcmail.php on line 995
[10-Nov-2009 13:37:02 +0000]: IMAP Error: Authentication for ali
failed (LOGIN): "a001 NO Login failed." (GET /roundcube/?_task=mail)
[10-Nov-2009 13:38:16] PHP Warning: mcrypt_generic_init()
[function.mcrypt-generic-init]: Iv size incorrect; supplied length: 9,
needed: 8 in /Library/WebServer/Documents/roundcube/program/include/
rcmail.php on line 995
[10-Nov-2009 13:38:21] PHP Warning: mcrypt_generic_init()
[function.mcrypt-generic-init]: Iv size incorrect; supplied length:
12, needed: 8 in /Library/WebServer/Documents/roundcube/program/
include/rcmail.php on line 995
[10-Nov-2009 13:38:24 +0000]: IMAP Error: Authentication for ali
failed (LOGIN): "a001 NO Login failed." (GET /roundcube/?_task=mail)
Grateful for any advice!
Cheers Ali
List info: http://lists.roundcube.net/users/
On Wednesday 11 November 2009 01:13:03 Alistair Bates wrote:
Hi
I've updated the version of PHP running
which version?
on my Mac OSX server and the new version includes mcrypt which I didn't have before. Since then I've not been able to log in.
There appears to be a problem with the length of the initialization vector being handed to the mcrypt function, the interesting thing being that the length is changing each time: 11, 18, 9, 12.
The error logs show:
ali@buggles:/Library/Webserver/Documents/roundcube$ tail logs/errors
[10-Nov-2009 13:23:09] PHP Warning: mcrypt_generic_init() [function.mcrypt-generic-init]: Iv size incorrect; supplied length: 11, needed: 8 in /Library/WebServer/Documents/roundcube/program/ include/rcmail.php on line 995 [10-Nov-2009 13:23:12 +0000]: IMAP Error: Authentication for ali failed (LOGIN): "a001 NO Login failed." (GET /roundcube/?_task=mail) [10-Nov-2009 13:36:59] PHP Warning: mcrypt_generic_init() [function.mcrypt-generic-init]: Iv size incorrect; supplied length: 18, needed: 8 in /Library/WebServer/Documents/roundcube/program/ include/rcmail.php on line 995 [10-Nov-2009 13:37:02 +0000]: IMAP Error: Authentication for ali failed (LOGIN): "a001 NO Login failed." (GET /roundcube/?_task=mail) [10-Nov-2009 13:38:16] PHP Warning: mcrypt_generic_init() [function.mcrypt-generic-init]: Iv size incorrect; supplied length: 9, needed: 8 in /Library/WebServer/Documents/roundcube/program/include/ rcmail.php on line 995 [10-Nov-2009 13:38:21] PHP Warning: mcrypt_generic_init() [function.mcrypt-generic-init]: Iv size incorrect; supplied length: 12, needed: 8 in /Library/WebServer/Documents/roundcube/program/ include/rcmail.php on line 995 [10-Nov-2009 13:38:24 +0000]: IMAP Error: Authentication for ali failed (LOGIN): "a001 NO Login failed." (GET /roundcube/?_task=mail)
Grateful for any advice!
quick workaround maybe to change program/include/rcmail.php lin 993 to $iv =8; but I'm not sure what long term effect this will have.
Alistair Bates wrote:
[10-Nov-2009 13:23:09] PHP Warning: mcrypt_generic_init() [function.mcrypt-generic-init]: Iv size incorrect; supplied length: 11, needed: 8 in
Just for the record, I've found that this happens when mbstring.func_overload<>0. Roundcube supports only 0 here.