<?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>Add authentication for remote calendars</title> 
  <pubDate>Fri, 10 Apr 2026 13:36:24 +0000</pubDate> 
  <link>https://bugs.horde.org/ticket/3696</link> 
  <atom:link rel="self" type="application/rss+xml" title="Add authentication for remote calendars" href="https://bugs.horde.org/ticket/3696/rss" /> 
  <description>Add authentication for remote calendars</description> 
 
   
   
  <item> 
   <title>Per my note to the dev list, this patch adds HTTP authentica</title> 
   <description>Per my note to the dev list, this patch adds HTTP authentication support for remote calendars. 



- The &quot;Remote Calendars&quot; prefs page was changed to accept user/password inputs, and to allow editing of an existing remote calendar entry

- The &quot;My Calendars&quot; page was updated to add an iCal link to each calendar to provide a convenient way to copy the corresponding URL

- The lib/prefs.php code was updated to handle the new preference attributes

- The lib/Kronolith.php class was updated to look up the user/password as needed



Note that both the user and password are encrypted and wrapped in base64 to prevent inadvertent disclosure via database queries. The encryption key (an MD5 hash of the target URL) is not particularly strong, but it is convenient and it should be sufficient to keep most DBAs honest. 



Tom Evans

Tachometry</description> 
   <pubDate>Mon, 27 Mar 2006 09:13:07 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/3696#t18161</link> 
  </item> 
   
  <item> 
   <title>I&#039;m wondering if that really works? If I remember correctly,</title> 
   <description>I&#039;m wondering if that really works? If I remember correctly, secrets are only guaranteed to work during a session, so you might be unable to decrypt the credentials after logging out.</description> 
   <pubDate>Tue, 28 Mar 2006 12:45:23 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/3696#t18191</link> 
  </item> 
   
  <item> 
   <title>I have successfully connected with authenticated remote cale</title> 
   <description>I have successfully connected with authenticated remote calendars across multiple login/logout cycles and everything seems fine. I also manually cleared the Horde cache and session files on the server just to be sure.  Any other conditions I should test?</description> 
   <pubDate>Tue, 28 Mar 2006 16:40:24 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/3696#t18309</link> 
  </item> 
   
  <item> 
   <title>Yes, try deleting cookies.</title> 
   <description>Yes, try deleting cookies.</description> 
   <pubDate>Tue, 28 Mar 2006 17:41:29 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/3696#t18321</link> 
  </item> 
   
  <item> 
   <title>OK - I cleared all cookies, dropped the session, log on/off </title> 
   <description>OK - I cleared all cookies, dropped the session, log on/off and still have a good remote calendar connection.  Thanks for the feedback. Anything else?</description> 
   <pubDate>Tue, 28 Mar 2006 18:27:40 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/3696#t18336</link> 
  </item> 
   
  <item> 
   <title>No, should be fine then, thanks for testing.</title> 
   <description>No, should be fine then, thanks for testing.</description> 
   <pubDate>Tue, 28 Mar 2006 22:01:36 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/3696#t18362</link> 
  </item> 
   
  <item> 
   <title>Ah, not quite. This patch doesn&#039;t give any more security tha</title> 
   <description>Ah, not quite. This patch doesn&#039;t give any more security than storing the credentials in cleartext. You use a known key (the url, stored in clear text in the preferences) to encrypt the credentials. Anybody who has access to the preferences, the people your are trying to protect the credentials against, can easily decrypt them, because they have the key. It&#039;s a bit more work, but still easy.</description> 
   <pubDate>Tue, 28 Mar 2006 22:08:16 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/3696#t18367</link> 
  </item> 
   
  <item> 
   <title>OK - no problem. I wanted to obfuscate the value in the data</title> 
   <description>OK - no problem. I wanted to obfuscate the value in the database without hard-wiring any magic cookies in the code. However, I agree it&#039;s not particularly secure, and we can make it a bit stronger by separating the key from the encrypted value.



As an (imperfect) alternative, I could add a configuration parameter in the Horde setup for a global encryption key, optionally generating a random value for a new Horde installation where no key exists. If this makes sense, I can also declare a new setup configuration tab to define shared encryption parameters (key, key strength, algorithm, etc.).  I can then plug these parameters into the Secret class.  I will also add some convenience methods for the Base64 string wrapper.



I&#039;ll put together a fresh patch with these additional changes for your review. I&#039;m also open to other suggestions. Do yo think this same approach would work to protect the IMP fetch mail credentials?



Thanks,

Tom

</description> 
   <pubDate>Tue, 28 Mar 2006 23:10:38 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/3696#t18382</link> 
  </item> 
   
  <item> 
   <title>Why don&#039;t you use the users current password as the key? Gra</title> 
   <description>Why don&#039;t you use the users current password as the key? Granted, this will still break decryption if the user changes his password, but it makes a perfect secret key. I could have sworn we do this already somewhere in the code, but I can&#039;t find where.



&gt; I&#039;ll put together a fresh patch with these additional changes for 

&gt; your review. I&#039;m also open to other suggestions. Do yo think this 

&gt; same approach would work to protect the IMP fetch mail credentials?



Sure.</description> 
   <pubDate>Tue, 28 Mar 2006 23:17:46 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/3696#t18383</link> 
  </item> 
   
  <item> 
   <title>Hi there.

I am new to horde an dkronolith and still testing</title> 
   <description>Hi there.

I am new to horde an dkronolith and still testing.

With kronolith, I have a calendar with users, groups and rights. I have edited them to have only rights to view or show. They still have the right to write new events , edit and kill&#039;em. They should not have.

Is this the same problem you are talking about ?

I want to be admin with editing events. The users only may see the events.

How to do ?

Do I have to change the php and delete the lines for showing the buttons ?

Any help would be great.

Is there any german forum ?

Yours sincerely, Jörg Heusler</description> 
   <pubDate>Thu, 30 Mar 2006 05:43:18 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/3696#t18417</link> 
  </item> 
   
  <item> 
   <title>&gt; Is this the same problem you are talking about ?



No, an</title> 
   <description>&gt; Is this the same problem you are talking about ?



No, and this is *not* a support forum.</description> 
   <pubDate>Thu, 30 Mar 2006 22:04:41 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/3696#t18465</link> 
  </item> 
   
  <item> 
   <title>I&#039;m OK with using the user&#039;s password as a key. However, I c</title> 
   <description>I&#039;m OK with using the user&#039;s password as a key. However, I couldn&#039;t tell at first glance whether it is available in plain text after it has been stored in the session. If you know where I should look, let me know. Otherwise I&#039;ll dig a little deeper on my own and get back to you.



So next question - should I try to integrate with the password change application to re-encrypt a value when I have both the new and old passwords? It&#039;s still not bullet-proof, because passwords can be changed outside of Horde. Perhaps it&#039;s not worth the extra effort...thoughts?</description> 
   <pubDate>Fri, 31 Mar 2006 07:09:29 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/3696#t18488</link> 
  </item> 
   
  <item> 
   <title>Never mind on my first question - figured it out (yikes!).

</title> 
   <description>Never mind on my first question - figured it out (yikes!).



Still wondering if a password change hook makes sense. I would need to find some way to register all such encrypted values to keep track of what needs to be updated with the new password-based encryption key.</description> 
   <pubDate>Fri, 31 Mar 2006 07:47:08 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/3696#t18489</link> 
  </item> 
   
  <item> 
   <title>Updated patch file attached, merged with current HEAD. Shoul</title> 
   <description>Updated patch file attached, merged with current HEAD. Should be clean (I hope). Thanks for all the feedback.



Let me know if you think I should pursue the passwd application integration concept.



I will be looking at IMP next to secure the credentials for remote email systems.</description> 
   <pubDate>Fri, 31 Mar 2006 08:03:49 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/3696#t18490</link> 
  </item> 
   
  <item> 
   <title>The calendar management looks good, though I don&#039;t know what</title> 
   <description>The calendar management looks good, though I don&#039;t know what the md5() and base64 are for.

And you should check whether there are credentials provided in the first place, both when saving and when using them.



Regarding the password changes, hooking into Passwd would be slick but I can&#039;t imagine a nice and clean solution currently. We don&#039;t have a way to define listeners in the registry atm, we could loop through all APIs and check for certain methods  though. Like we do for clearUserData or admin_list already.</description> 
   <pubDate>Fri, 31 Mar 2006 08:35:42 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/3696#t18497</link> 
  </item> 
   
  <item> 
   <title>I am using base64 to convert the binary-ish output from the </title> 
   <description>I am using base64 to convert the binary-ish output from the Secret class into something more string-friendly. Without it, the prefs page fails to render. Turns out the md5 hash was a holdover from an earlier interation - I&#039;ve removed it.



I added a check for a valid password credential. Now if the password is unavailable, the remote calendar credentials will be stored in plain text in the preferences table.</description> 
   <pubDate>Fri, 31 Mar 2006 09:43:08 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/3696#t18502</link> 
  </item> 
   
  <item> 
   <title>Tweaked and committed, thanks.</title> 
   <description>Tweaked and committed, thanks.</description> 
   <pubDate>Mon, 07 Aug 2006 16:30:35 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/3696#t22756</link> 
  </item> 
   
   
 
 </channel> 
</rss> 
