6.0.0-RC7
6/24/26

[#11460] PHP errors with latest git (IMAP authentication)
Summary PHP errors with latest git (IMAP authentication)
Queue Horde Framework Packages
Queue Version Git develop
Type Bug
State Resolved
Priority 1. Low
Owners slusarz (at) horde (dot) org
Requester thomas.jarosch (at) intra2net (dot) com
Created 10/4/12 (5011 days ago)
Due
Updated 10/15/12 (5000 days ago)
Assigned
Resolved 10/4/12 (5011 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
228 Git Commit Comment #3 Reply to this comment
Changes have been made in Git (develop):

commit 3fa306bcb421abe049ddb2d8f9f0b057a875e2fb
Author: Michael M Slusarz <slusarz@horde.org>
Date:   Thu Oct 4 13:01:36 2012 -0600

     Bug #11460: Fix wrong object reference

  .../Imap_Client/lib/Horde/Imap/Client/Socket.php   |    2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)

http://git.horde.org/horde-git/-/commit/3fa306bcb421abe049ddb2d8f9f0b057a875e2fb
227 Michael Slusarz Assigned to Michael Slusarz
State ⇒ Resolved
 
167 Git Commit Comment #2 Reply to this comment
Changes have been made in Git (master):

commit 3fa306bcb421abe049ddb2d8f9f0b057a875e2fb
Author: Michael M Slusarz <slusarz@horde.org>
Date:   Thu Oct 4 13:01:36 2012 -0600

     Bug #11460: Fix wrong object reference

  .../Imap_Client/lib/Horde/Imap/Client/Socket.php   |    2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)

http://git.horde.org/horde-git/-/commit/3fa306bcb421abe049ddb2d8f9f0b057a875e2fb
468 Thomas Jarosch Comment #1
Priority ⇒ 1. Low
Patch ⇒ No
Milestone ⇒
Queue ⇒ Horde Framework Packages
Summary ⇒ PHP errors with latest git (IMAP authentication)
Type ⇒ Bug
State ⇒ Unconfirmed
Reply to this comment
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

Saved Queries