[Tickets #11460] PHP errors with latest git (IMAP authentication)

bugs at horde.org bugs at horde.org
Thu Oct 4 08:42:47 UTC 2012


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

Ticket URL: http://bugs.horde.org/ticket/11460
------------------------------------------------------------------------------
  Ticket             | 11460
  Created By         | Thomas Jarosch <thomas.jarosch at intra2net.com>
  Summary            | PHP errors with latest git (IMAP authentication)
  Queue              | Horde Framework Packages
  Version            | Git develop
  Type               | Bug
  State              | Unconfirmed
  Priority           | 1. Low
  Milestone          |
  Patch              |
  Owners             |
------------------------------------------------------------------------------


Thomas Jarosch <thomas.jarosch at intra2net.com> (2012-10-04 08:42) wrote:

Hi,

I can't get past the login page:

[Thu Oct 04 10:27:19 2012] [error] [client 192.168.122.1] PHP Fatal  
error:  Call to undefined method  
Horde_Imap_Client_Interaction_Server_Continuation::current() in  
/datastore/DEVEL/horde/framework/Imap_Client/lib/Horde/Imap/Client/Socket.php  
on line 598, referer: https://192.168.122.254/horde/login.php


It looks like CRAM-MD5 authentication is working but DIGEST-MD5 fails.

Use this quick hack to reproduce it:
--- a/framework/Imap_Client/lib/Horde/Imap/Client/Socket.php
+++ b/framework/Imap_Client/lib/Horde/Imap/Client/Socket.php
@@ -355,7 +355,8 @@ class Horde_Imap_Client_Socket extends  
Horde_Imap_Client_Base
              if (!empty($auth_methods)) {
                  // Add SASL methods. Prefer CRAM-MD5 over DIGEST-MD5, as the
                  // latter has been obsoleted (RFC 6331).
-                $imap_auth_mech = array_intersect(array('CRAM-MD5',  
'DIGEST-MD5'), $auth_methods);
+//                $imap_auth_mech = array_intersect(array('CRAM-MD5',  
'DIGEST-MD5'), $auth_methods);
+                $imap_auth_mech =  
array_intersect(array('DIGEST-MD5'), $auth_methods);

                  // Next, try 'PLAIN' authentication.
                  if (in_array('PLAIN', $auth_methods)) {


Thomas






More information about the bugs mailing list