6.0.0-alpha12
6/8/25

[#10679] IMAP Authentication Backend does not work for e.g. kornolith auth
Summary IMAP Authentication Backend does not work for e.g. kornolith auth
Queue Horde Framework Packages
Queue Version Git master
Type Bug
State Not A Bug
Priority 2. Medium
Owners
Requester tkrah (at) fachschaft (dot) imn (dot) htwk-leipzig (dot) de
Created 10/24/2011 (4976 days ago)
Due 10/25/2011 (4975 days ago)
Updated 10/24/2011 (4976 days ago)
Assigned
Resolved 10/24/2011 (4976 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch Yes

History
10/24/2011 07:07:28 PM Michael Slusarz State ⇒ Not A Bug
 
10/24/2011 07:02:53 PM tkrah (at) fachschaft (dot) imn (dot) htwk-leipzig (dot) de Comment #2 Reply to this comment
Sorry for the noise - seems the latest upgrade did resolve this one as 
where it does not work before updating to latest imap / horde / 
kronolith client. Did only retest the behaviour before reporting but 
forget to upgrade to latest released versions.
10/24/2011 06:28:55 PM tkrah (at) fachschaft (dot) imn (dot) htwk-leipzig (dot) de Comment #1
State ⇒ Unconfirmed
Priority ⇒ 2. Medium
Type ⇒ Bug
Summary ⇒ IMAP Authentication Backend does not work for e.g. kornolith auth
Due ⇒ 10/25/2011
Queue ⇒ Horde Framework Packages
Milestone ⇒
Patch ⇒ Yes
Reply to this comment
I am using imap authentication (because of a bug in imp) to 
authenticate. Works find for horde so far. But accessing calendars via 
rpc fails with:

Horde_Imap_Client requires a username and password.

Made a small fix to the code like this:

--- /tmp/Imap.php        2011-05-09 15:32:35.000000000 +0000
+++ /usr/share/php/Horde/Auth/Imap.php        2011-05-09 15:29:28.000000000 +0000
@@ -82,6 +82,9 @@
       */
      protected function _authenticate($userId, $credentials)
      {
+        if(empty($userId) || empty($credentials)) {
+            throw new Horde_Auth_Exception('', Horde_Auth::REASON_BADLOGIN);
+        }
          try {
              $ob = $this->_getOb($userId, $credentials['password']);
              $ob->login();


After this kornolith access via RPC does work - i am asked like 
expected via 401 code for authentication and get the ical file after 
passing the correct credentials.

Saved Queries