<?xml version="1.0" encoding="UTF-8"?> 
<?xml-stylesheet href="https://dev.horde.org/themes/horde//default/feed-rss.xsl" type="text/xsl"?> 
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"> 
 <channel> 
  <title>Lightning&lt;-&gt;RPC; Authentication doesn&#039;t work</title> 
  <pubDate>Fri, 10 Apr 2026 14:48:35 +0000</pubDate> 
  <link>https://bugs.horde.org/ticket/9893</link> 
  <atom:link rel="self" type="application/rss+xml" title="Lightning&lt;-&gt;RPC; Authentication doesn&#039;t work" href="https://bugs.horde.org/ticket/9893/rss" /> 
  <description>Lightning&lt;-&gt;RPC; Authentication doesn&#039;t work</description> 
 
   
   
  <item> 
   <title>Zitat von Jan Schneider &lt;jan@horde.org&gt;:

&gt; Zitat von mich</title> 
   <description>Zitat von Jan Schneider &lt;jan@horde.org&gt;:

&gt; Zitat von michael.groene@zel.uni-hannover.de:
&gt;
&gt;&gt; Hello,
&gt;&gt;
&gt;&gt; currently I&#039;m trying to get Thunderbird Lightning to be working with 
&gt;&gt; Horde4-RC2 via RPC-api.
&gt;&gt; I know, that it worked already in pre-alpha-versions last year, 
&gt;&gt; directly pulled from git, very well, but in the current release I 
&gt;&gt; run into problems.
&gt;&gt;
&gt;&gt; I used the URI, given by kronolith (e.g. 
&gt;&gt; http://horde4.dev.zew.local/rpc.php/kronolith/michael.groene@zel.uni-hannover.de/TRiyKgXxcxFNxfv3y0-WoiA.ics) and will add this as an iCal-Calendar in 
&gt;&gt; Lightning.
&gt;&gt;
&gt;&gt; With the pre-alpha-version, Lightning asked me for credentials, when 
&gt;&gt; trying to access the calendar. In todays releases this doesn&#039;t 
&gt;&gt; happen.
&gt;&gt; I probed the communication with Wireshark. After Lightning tries to 
&gt;&gt; GET the URI mentioned above, Horde is answering with 404/File not 
&gt;&gt; Found-Error.
&gt;&gt; Trying to locate an Browser to the URI will result in the same 
&gt;&gt; error, but when logging in, in another tab before, I can download 
&gt;&gt; the iCal.
&gt;&gt;
&gt;&gt; Will I need to configure anything further, or is this a bug?
&gt;
&gt; Is this still happening with the final release?
Yes, its still broken in the final.</description> 
   <pubDate>Wed, 13 Apr 2011 13:55:25 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9893#t63628</link> 
  </item> 
   
  <item> 
   <title>Are you sure that this 404 is not coming from your web serve</title> 
   <description>Are you sure that this 404 is not coming from your web server? Do you have PATH_INFO disabled (or not enabled) by chance?</description> 
   <pubDate>Tue, 19 Apr 2011 16:10:11 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9893#t63919</link> 
  </item> 
   
  <item> 
   <title>&gt; Are you sure that this 404 is not coming from your web ser</title> 
   <description>&gt; Are you sure that this 404 is not coming from your web server? Do you 
&gt; have PATH_INFO disabled (or not enabled) by chance?

No, horde4.dev.local/test.php/test?mode=phpinfo gives me an $_SERVER[&quot;PATH_INFO&quot;]=&quot;/test&quot;</description> 
   <pubDate>Wed, 27 Apr 2011 14:01:44 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9893#t64241</link> 
  </item> 
   
  <item> 
   <title>&gt;&gt; Are you sure that this 404 is not coming from your web se</title> 
   <description>&gt;&gt; Are you sure that this 404 is not coming from your web server? Do you
&gt;&gt; have PATH_INFO disabled (or not enabled) by chance?
&gt;
&gt; No, horde4.dev.local/test.php/test?mode=phpinfo gives me an 
&gt; $_SERVER[&quot;PATH_INFO&quot;]=&quot;/test&quot;

Here the full answer. Again: When logged in, in another tab, I can download the calendars iCal file. When not logged in, Horde is not asking for credentials, as it did in horde3.</description> 
   <pubDate>Wed, 27 Apr 2011 14:49:20 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9893#t64246</link> 
  </item> 
   
  <item> 
   <title>A duplicate of bug #9733?</title> 
   <description>A duplicate of bug #9733?</description> 
   <pubDate>Wed, 18 May 2011 15:53:25 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9893#t64797</link> 
  </item> 
   
  <item> 
   <title>&gt; A duplicate of bug #9733?

I changed the lines according</title> 
   <description>&gt; A duplicate of bug #9733?

I changed the lines according to this commit:
http://git.horde.org/horde-git/-/commit/a65072badbcb509690ca009bb0770ca1c641e393

This changes nothing, horde logs this error:
2011-05-24T14:45:28+02:00 ERR: HORDE [horde] Calendar does not exist or no permission to edit [pid 7125 on line 295 of &quot;/var/www/horde4/kronolith/lib/Api.php&quot;]

The permission is not granted, because Lightning doesn&#039;t ask for credentials.</description> 
   <pubDate>Tue, 24 May 2011 12:52:01 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9893#t65024</link> 
  </item> 
   
  <item> 
   <title>I just found out, that the usernames containing the @-sign a</title> 
   <description>I just found out, that the usernames containing the @-sign are the problem.
I&#039;m testing now with SQL-authentication-backend with two users (one with @ in username, one without).

The problem of not being asked for credentials is only for the user with the @-sign in its username and thereby in the calendar&#039;s url.
http://horde4.dev.zew.local/rpc.php/kronolith/michael@localsql/lfwSRwXxcxFN3gVPSXowrdA.ics (not working)
vs
http://horde4.dev.zew.local/rpc.php/kronolith/michael_localsql/wR6FRQXxcxFN3gRx2Veg9yA.ics (works)

I don&#039;t really know how to get this solved, have you any hints? We can&#039;t use other usernames, because we use mailaddresses.</description> 
   <pubDate>Thu, 26 May 2011 07:58:57 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9893#t65088</link> 
  </item> 
   
  <item> 
   <title>Does it work if you use %40 instead of @ in the user name?</title> 
   <description>Does it work if you use %40 instead of @ in the user name?</description> 
   <pubDate>Thu, 02 Jun 2011 21:28:34 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9893#t65288</link> 
  </item> 
   
  <item> 
   <title>&gt; Does it work if you use %40 instead of @ in the user name?</title> 
   <description>&gt; Does it work if you use %40 instead of @ in the user name?

No, I tried that already. Changes nothing.</description> 
   <pubDate>Fri, 03 Jun 2011 04:23:53 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9893#t65322</link> 
  </item> 
   
  <item> 
   <title>I have had the same kinf of problem.

With a Kronlith 3.0.</title> 
   <description>I have had the same kinf of problem.

With a Kronlith 3.0.3 installed, my Lightning sync was working with Horde 3 and not with Horde 4.

I get a &quot;HORDE [horde] Horde_Imap_Client requires a username and password. [pid 8146 on line 144 of &quot;/var/www/horde/pear/php/Horde/Imap/Client/Base.php&quot;]&quot;

The HTTP authentication is never prompted.
Looking at the stack trace it goes to Horde_Rpc_Webdav-&gt;_check_auth() that checks for an internal function check_auth() that is always true (!) and then goes on Horde_Rpc_Webdav-&gt;check_auth() (without underscore) that calls other IMAP auth classes.

In Webdav.php (Horde_Rpc_Webdav) I have added a try / catch (InvalidArgumentException $e) block around the return $this-&gt;check_auth($auth_type, $auth_user, $auth_pw);
in else if (method_exists($this, &quot;check_auth&quot;)) statement
that returns false in the catch block

Then the Auth Basic header is sent at first request and then Basic Auth is asked to the client and it works again.

If you need this on a patch format feel free to ask me (since I don&#039;t know if it breaks other things)

What I find strange is that the _check_auth func checks for a check_auth method in the same class, always returning true...</description> 
   <pubDate>Mon, 06 Jun 2011 09:26:44 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9893#t65418</link> 
  </item> 
   
  <item> 
   <title>This seems to be fixed by http://bugs.horde.org/ticket/10211</title> 
   <description>This seems to be fixed by http://bugs.horde.org/ticket/10211</description> 
   <pubDate>Thu, 09 Jun 2011 11:41:05 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9893#t65533</link> 
  </item> 
   
   
 
 </channel> 
</rss> 
