<?xml version="1.0" encoding="ISO-8859-1"?>
<?xml-stylesheet href="http://bugs.horde.org/themes/feed-rss.xsl" type="text/xsl"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
 <channel>
  <title>Realm and syncing</title>
  <pubDate>Fri, 09 Jan 2009 02:27:54 -0500</pubDate>
  <link>http://bugs.horde.org/ticket/6749</link>
  <atom:link rel="self" type="application/rss+xml" title="Realm and syncing" href="http://bugs.horde.org/ticket/6749/rss" />
  <description>Realm and syncing</description>

  
  
  <item>
   <title>We have an issue similar to ticket #6746 but we're using Syn</title>
   <description>We have an issue similar to ticket #6746 but we're using SyncML via the funambol plug-in for contacts syncing w/Lightning.  The sync works with our dev horde setup which uses LDAP authentication.  Our main site uses IMP authentication and realms which is where the sync is not working.

Both Horde installations are Webmail Edition 1.1-RC4.  

The user is stored as username@realm but the IMP backend is only expecting username.  If we configure the plug-in to send username, it fails because username doesn't exist in horde.  If we put username@realm, the backend auth fails.</description>
   <pubDate>Fri, 23 May 2008 17:05:02 -0400</pubDate>
   <link>http://bugs.horde.org/ticket/6749#t45520</link>
  </item>
  <item>
   <title>This rather seems to be a problem with authenticating throug</title>
   <description>This rather seems to be a problem with authenticating through the Auth API.</description>
   <pubDate>Sun, 25 May 2008 10:43:40 -0400</pubDate>
   <link>http://bugs.horde.org/ticket/6749#t45575</link>
  </item>
  <item>
   <title>I'm getting lost in the fragile authentication chain inside </title>
   <description>I'm getting lost in the fragile authentication chain inside IMP. Michael, can you see anything?</description>
   <pubDate>Sun, 25 May 2008 10:48:54 -0400</pubDate>
   <link>http://bugs.horde.org/ticket/6749#t45576</link>
  </item>
  <item>
   <title>&gt; I'm getting lost in the fragile authentication chain insid</title>
   <description>&gt; I'm getting lost in the fragile authentication chain inside IMP. 
&gt; Michael, can you see anything?

Not really sure what I am looking for since I have no experience with realms and or syncing.</description>
   <pubDate>Tue, 03 Jun 2008 01:57:31 -0400</pubDate>
   <link>http://bugs.horde.org/ticket/6749#t45858</link>
  </item>
  <item>
   <title>This is not really related to synching. The code that trigge</title>
   <description>This is not really related to synching. The code that triggers this behavior looks basically like:

$auth = &amp;Auth::singleton($GLOBALS['conf']['auth']['driver']);
$auth-&gt;authenticate($username, array('password' =&gt; $pwd));

If you use IMP authentication and configured IMP to use realms for the preferred server, the realms are not attached. This has something to do with the order in which the IMP session is being setup, servers.php is loaded, and the different authenticate() and _authenticate() methods in Auth::, Auth_application::, and Auth_imp:: are being called. This is where I got lost.</description>
   <pubDate>Tue, 03 Jun 2008 06:05:48 -0400</pubDate>
   <link>http://bugs.horde.org/ticket/6749#t45870</link>
  </item>
  <item>
   <title>By chance, does this patch help?</title>
   <description>By chance, does this patch help?</description>
   <pubDate>Fri, 13 Jun 2008 22:23:45 -0400</pubDate>
   <link>http://bugs.horde.org/ticket/6749#t46447</link>
  </item>
  <item>
   <title>Ping?</title>
   <description>Ping?</description>
   <pubDate>Tue, 24 Jun 2008 17:50:34 -0400</pubDate>
   <link>http://bugs.horde.org/ticket/6749#t46778</link>
  </item>
  <item>
   <title>&gt; By chance, does this patch help?

In the log, I'm receiv</title>
   <description>&gt; By chance, does this patch help?

In the log, I'm receiving &quot;Invalid authentication&quot;

DEBUG:  Backend of class syncml_backend_horde created
DEBUG:  Started at 2008-07-01 13:36:06. Packet logged in /tmp/sync/client_12.xml
DEBUG:  New session created: 6af242c0d8eb164047652ba19ba257e0
DEBUG:  Checking authentication for user tyuhas
DEBUG:  Invalid authentication
DEBUG:  Authenticated: no; version: 1.1; message ID: 1; source URI: fmz-bRynSkjE
100plqxQHERhMg==; target URI: https://email.arl.arizona.edu:8088/rpc.php; user:
; charset: UTF-8; wbxml: no
DEBUG:  Received &lt;Final&gt; from client.
DEBUG:  Sending &lt;Final&gt; to client
DEBUG:  Return message completed
DEBUG:  Finished at 2008-07-01 13:37:01. Packet logged in /tmp/sync/server_12.xm
l</description>
   <pubDate>Tue, 01 Jul 2008 16:43:28 -0400</pubDate>
   <link>http://bugs.horde.org/ticket/6749#t47078</link>
  </item>
  <item>
   <title>&gt;&gt; By chance, does this patch help?
&gt;
&gt; In the log, I'm re</title>
   <description>&gt;&gt; By chance, does this patch help?
&gt;
&gt; In the log, I'm receiving &quot;Invalid authentication&quot;

And is that what you received before? Sending username or username@realm?</description>
   <pubDate>Tue, 01 Jul 2008 17:10:25 -0400</pubDate>
   <link>http://bugs.horde.org/ticket/6749#t47079</link>
  </item>
  <item>
   <title>&gt;&gt;&gt; By chance, does this patch help?
&gt;&gt;
&gt;&gt; In the log, I'm</title>
   <description>&gt;&gt;&gt; By chance, does this patch help?
&gt;&gt;
&gt;&gt; In the log, I'm receiving &quot;Invalid authentication&quot;
&gt;
&gt; And is that what you received before? Sending username or username@realm?

username@realm.....I tried it both ways but pasted the wrong portion of the log.  Here's the username@realm test with the patch:

DEBUG:  Backend of class syncml_backend_horde created
DEBUG:  Started at 2008-07-01 13:34:21. Packet logged in /tmp/sync/client_11.xml
DEBUG:  New session created: 3609e9f199601d790a8bddeebbcc55af
DEBUG:  Checking authentication for user tyuhas@email.arizona.edu
DEBUG:  Invalid authentication
DEBUG:  Authenticated: no; version: 1.1; message ID: 1; source URI: fmz-bRynSkjE
100plqxQHERhMg==; target URI: https://email.arl.arizona.edu:8088/rpc.php; user:
; charset: UTF-8; wbxml: no
DEBUG:  Received &lt;Final&gt; from client.
DEBUG:  Sending &lt;Final&gt; to client
DEBUG:  Return message completed
DEBUG:  Finished at 2008-07-01 13:34:51. Packet logged in /tmp/sync/server_11.xm
l
</description>
   <pubDate>Tue, 01 Jul 2008 17:21:32 -0400</pubDate>
   <link>http://bugs.horde.org/ticket/6749#t47080</link>
  </item>
  <item>
   <title>Sorry, and what was happening (in the logs if you have it) b</title>
   <description>Sorry, and what was happening (in the logs if you have it) before the patch?

Also, am I understanding correctly that username works for auth, but doesn't match up with any data? (with and/or without the patch?) So the issue would seem to be that when doing auth via the API, the realm isn't added?</description>
   <pubDate>Thu, 03 Jul 2008 00:01:10 -0400</pubDate>
   <link>http://bugs.horde.org/ticket/6749#t47143</link>
  </item>
  <item>
   <title>&gt; Sorry, and what was happening (in the logs if you have it)</title>
   <description>&gt; Sorry, and what was happening (in the logs if you have it) before the patch?
&gt;
&gt; Also, am I understanding correctly that username works for auth, but 
&gt; doesn't match up with any data? (with and/or without the patch?) So 
&gt; the issue would seem to be that when doing auth via the API, the 
&gt; realm isn't added?

I just stumbled on this bug from reading the mailing list.  I seem to be affected as well.  From the best I can tell, syncing to rpc.php is not appending the realm.

I can sync using funambol as the username &quot;path&quot;.  It does not see anything and uploads my Outlook contacts and so forth.  If I try to sync using &quot;path@dtcc.edu&quot;, I am not able to authenticate.

Running &quot;SELECT count(*) from horde.horde_prefs WHERE pref_uid='path'&quot; on the database shows that ten records are created in that table after a sync operation (I ensured that there were not any records for that user prior to the sync).  All of my horde data is linked to 'path@dtcc.edu'.

I tried the patch attached to this ticket and it had no effect (good or bad).

I'm using the stock &quot;Horde Groupware Webmail Edition 1.1.1&quot;.  Using imp authentication to the imap server.
</description>
   <pubDate>Fri, 11 Jul 2008 17:24:05 -0400</pubDate>
   <link>http://bugs.horde.org/ticket/6749#t47471</link>
  </item>
  <item>
   <title>&gt; Sorry, and what was happening (in the logs if you have it)</title>
   <description>&gt; Sorry, and what was happening (in the logs if you have it) before the patch?

Can anybody experiencing this issue please answer that question?</description>
   <pubDate>Fri, 29 Aug 2008 09:36:17 -0400</pubDate>
   <link>http://bugs.horde.org/ticket/6749#t48554</link>
  </item>
  <item>
   <title>&gt;&gt; Sorry, and what was happening (in the logs if you have it</title>
   <description>&gt;&gt; Sorry, and what was happening (in the logs if you have it) before the patch?
&gt;
&gt; Can anybody experiencing this issue please answer that question?

Both my pre and post patch syncml log files look like this:

DEBUG:  Backend of class syncml_backend_horde created
DEBUG:  Started at 2008-08-29 08:52:22. Packet logged in /tmp/sync/client_14.xml
DEBUG:  New session created: 5038b45d6ffc1337852886d81747daa5
DEBUG:  Checking authentication for user tyuhas
DEBUG:  Invalid authentication
DEBUG:  Authenticated: no; version: 1.1; message ID: 1; source URI: fmz-bRynSkjE
100plqxQHERhMg==; target URI: https://email.arl.arizona.edu:8088/rpc.php; user:
; charset: UTF-8; wbxml: no
DEBUG:  Received &lt;Final&gt; from client.
DEBUG:  Sending &lt;Final&gt; to client
DEBUG:  Return message completed
DEBUG:  Finished at 2008-08-29 08:53:32. Packet logged in /tmp/sync/server_14.xm
l

With that username, I can successfully login to Horde (using IMP authentication).

Like the other individual, I'm using the Funambol plugin for Thunderbird to sync my contact list.  In my earlier tests but with the Horde authentication being SMB, I was able to sync with the Funambol/Thunderbird combo.</description>
   <pubDate>Fri, 29 Aug 2008 12:15:45 -0400</pubDate>
   <link>http://bugs.horde.org/ticket/6749#t48562</link>
  </item>
  <item>
   <title>Let's try and get this fixed for IMP 4.3.</title>
   <description>Let's try and get this fixed for IMP 4.3.</description>
   <pubDate>Mon, 22 Sep 2008 11:04:14 -0400</pubDate>
   <link>http://bugs.horde.org/ticket/6749#t49115</link>
  </item>
  <item>
   <title>Any chance of this being fixed today? I would like to roll t</title>
   <description>Any chance of this being fixed today? I would like to roll the releases tomorrow.</description>
   <pubDate>Wed, 24 Sep 2008 12:24:04 -0400</pubDate>
   <link>http://bugs.horde.org/ticket/6749#t49188</link>
  </item>
  <item>
   <title>Changes have been made in CVS for this ticket:

http://cvs.h</title>
   <description>Changes have been made in CVS for this ticket:

http://cvs.horde.org/diff.php/imp/lib/api.php?r1=1.132&amp;r2=1.133&amp;ty=u</description>
   <pubDate>Wed, 24 Sep 2008 14:01:30 -0400</pubDate>
   <link>http://bugs.horde.org/ticket/6749#t49205</link>
  </item>
  <item>
   <title>Does this help?</title>
   <description>Does this help?</description>
   <pubDate>Wed, 24 Sep 2008 14:02:28 -0400</pubDate>
   <link>http://bugs.horde.org/ticket/6749#t49206</link>
  </item>
  <item>
   <title>Changes have been made in CVS for this ticket:

http://cvs.h</title>
   <description>Changes have been made in CVS for this ticket:

http://cvs.horde.org/diff.php/imp/lib/api.php?r1=1.94.10.19&amp;r2=1.94.10.20&amp;ty=u</description>
   <pubDate>Wed, 24 Sep 2008 14:04:55 -0400</pubDate>
   <link>http://bugs.horde.org/ticket/6749#t49207</link>
  </item>
  <item>
   <title>&gt; Does this help?
unfortunately no...
at least not when sy</title>
   <description>&gt; Does this help?
unfortunately no...
at least not when syncing using webdav</description>
   <pubDate>Wed, 24 Sep 2008 17:44:37 -0400</pubDate>
   <link>http://bugs.horde.org/ticket/6749#t49213</link>
  </item>
  <item>
   <title>&gt; unfortunately no...
&gt; at least not when syncing using web</title>
   <description>&gt; unfortunately no...
&gt; at least not when syncing using webdav

AFAICT, this ticket is concerned solely with syncml authentication and realm issues.  My fixes correctly set IMP's uniquser variable with the realm information (I think/hope), which was the issue reported here.  Problems with syncing/authentication in general are not the focus of this ticket unless they are directly attributable to IMP authentication/realm issues.</description>
   <pubDate>Wed, 24 Sep 2008 17:56:12 -0400</pubDate>
   <link>http://bugs.horde.org/ticket/6749#t49214</link>
  </item>
  <item>
   <title>...hmmm in ticket #6746 Jan told me that this is exactly the</title>
   <description>...hmmm in ticket #6746 Jan told me that this is exactly the same issue, therefore I thought your fixes would also apply for the webdav stuff, or am I wrong?</description>
   <pubDate>Wed, 24 Sep 2008 18:04:42 -0400</pubDate>
   <link>http://bugs.horde.org/ticket/6749#t49215</link>
  </item>
  <item>
   <title>&gt; ...hmmm in ticket #6746 Jan told me that this is exactly t</title>
   <description>&gt; ...hmmm in ticket #6746 Jan told me that this is exactly the same 
&gt; issue, therefore I thought your fixes would also apply for the webdav 
&gt; stuff, or am I wrong?

You are correct.  I was not aware of the previous report (which probably means I really shouldn't be mucking around with this code in the first place).</description>
   <pubDate>Wed, 24 Sep 2008 18:22:10 -0400</pubDate>
   <link>http://bugs.horde.org/ticket/6749#t49216</link>
  </item>
  <item>
   <title>Changes have been made in CVS for this ticket:

http://cvs.h</title>
   <description>Changes have been made in CVS for this ticket:

http://cvs.horde.org/diff.php/framework/Auth/Auth/application.php?r1=1.45&amp;r2=1.46&amp;ty=u</description>
   <pubDate>Wed, 24 Sep 2008 18:45:04 -0400</pubDate>
   <link>http://bugs.horde.org/ticket/6749#t49217</link>
  </item>
  <item>
   <title>&gt; Changes have been made in CVS for this ticket:
&gt;
&gt; http:</title>
   <description>&gt; Changes have been made in CVS for this ticket:
&gt;
&gt; http://cvs.horde.org/diff.php/framework/Auth/Auth/application.php?r1=1.45&amp;r2=1.46&amp;ty=u

This seems to do it, although I didn't test it thoroughly it seems to work for both: webdav and syncml

</description>
   <pubDate>Wed, 24 Sep 2008 19:33:29 -0400</pubDate>
   <link>http://bugs.horde.org/ticket/6749#t49218</link>
  </item>
  <item>
   <title>Changes have been made in CVS for this ticket:

http://cvs.h</title>
   <description>Changes have been made in CVS for this ticket:

http://cvs.horde.org/diff.php/horde/docs/CHANGES?r1=1.1164&amp;r2=1.1165&amp;ty=u</description>
   <pubDate>Wed, 24 Sep 2008 23:19:30 -0400</pubDate>
   <link>http://bugs.horde.org/ticket/6749#t49222</link>
  </item>
  <item>
   <title>Changes have been made in CVS for this ticket:

http://cvs.h</title>
   <description>Changes have been made in CVS for this ticket:

http://cvs.horde.org/diff.php/framework/Auth/Auth/application.php?r1=1.27.10.15&amp;r2=1.27.10.16&amp;ty=u
http://cvs.horde.org/diff.php/horde/docs/CHANGES?r1=1.515.2.471&amp;r2=1.515.2.472&amp;ty=u</description>
   <pubDate>Wed, 24 Sep 2008 23:21:02 -0400</pubDate>
   <link>http://bugs.horde.org/ticket/6749#t49223</link>
  </item>
  <item>
   <title>I just noticed that the Timestamps of successful synchroniza</title>
   <description>I just noticed that the Timestamps of successful synchronization sessions are not being written correctly (realm is missing) to the database.
Could be because setUser($user) from SyncML/Backend/Horde.php 78 sets the user to the user without realm?

When I set $user = Auth::getAuth(); in this function, then the timestamps appear in &quot;Global Options -&gt; SyncML&quot;.
Can someone confirm this?</description>
   <pubDate>Thu, 25 Sep 2008 04:00:27 -0400</pubDate>
   <link>http://bugs.horde.org/ticket/6749#t49224</link>
  </item>
  <item>
   <title>Changes have been made in CVS for this ticket:

http://cvs.h</title>
   <description>Changes have been made in CVS for this ticket:

http://cvs.horde.org/diff.php/framework/SyncML/SyncML.php?r1=1.75&amp;r2=1.76&amp;ty=u
http://cvs.horde.org/diff.php/framework/SyncML/SyncML/Backend/Horde.php?r1=1.23&amp;r2=1.24&amp;ty=u
http://cvs.horde.org/diff.php/framework/SyncML/SyncML/Backend/Sql.php?r1=1.10&amp;r2=1.11&amp;ty=u</description>
   <pubDate>Thu, 25 Sep 2008 05:30:22 -0400</pubDate>
   <link>http://bugs.horde.org/ticket/6749#t49228</link>
  </item>
  <item>
   <title>&gt; I just noticed that the Timestamps of successful synchroni</title>
   <description>&gt; I just noticed that the Timestamps of successful synchronization 
&gt; sessions are not being written correctly (realm is missing) to the 
&gt; database.
&gt; Could be because setUser($user) from SyncML/Backend/Horde.php 78 sets 
&gt; the user to the user without realm?

Yes, it sets to the user that has been sent by the client. Please try what I committed.</description>
   <pubDate>Thu, 25 Sep 2008 05:30:52 -0400</pubDate>
   <link>http://bugs.horde.org/ticket/6749#t49229</link>
  </item>
  <item>
   <title>Changes have been made in CVS for this ticket:

http://cvs.h</title>
   <description>Changes have been made in CVS for this ticket:

http://cvs.horde.org/diff.php/framework/SyncML/SyncML.php?r1=1.21.10.16&amp;r2=1.21.10.17&amp;ty=u
http://cvs.horde.org/diff.php/framework/SyncML/SyncML/Backend/Horde.php?r1=1.8.2.12&amp;r2=1.8.2.13&amp;ty=u
http://cvs.horde.org/diff.php/framework/SyncML/SyncML/Backend/Sql.php?r1=1.6.2.4&amp;r2=1.6.2.5&amp;ty=u</description>
   <pubDate>Thu, 25 Sep 2008 05:37:33 -0400</pubDate>
   <link>http://bugs.horde.org/ticket/6749#t49231</link>
  </item>
  <item>
   <title>Now they get set, but the syncml_timestamp is &quot;0&quot; in horde_s</title>
   <description>Now they get set, but the syncml_timestamp is &quot;0&quot; in horde_syncml_map for any entry.

When I try delete the SyncmlTimestamps via &quot;Options -&gt; Timestamps of successful synchronization sessions -&gt; Delete | Delete all SnyMLData&quot; then only the entries in the horde_syncml_anchors table get deleted but the horde_syncml_map table remains unchanged.

Is this intended?
(Anyway, I guess it is not related to the realm problem)</description>
   <pubDate>Thu, 25 Sep 2008 11:23:53 -0400</pubDate>
   <link>http://bugs.horde.org/ticket/6749#t49238</link>
  </item>
  <item>
   <title>&gt; Now they get set, but the syncml_timestamp is &quot;0&quot; in horde</title>
   <description>&gt; Now they get set, but the syncml_timestamp is &quot;0&quot; in horde_syncml_map 
&gt; for any entry.

This is the expected behavior, the timestamp is only set under certain circumstances. I don't understand why at the moment, but that's how the code works, intentionally.

&gt; When I try delete the SyncmlTimestamps via &quot;Options -&gt; Timestamps of 
&gt; successful synchronization sessions -&gt; Delete | Delete all SnyMLData&quot; 
&gt; then only the entries in the horde_syncml_anchors table get deleted 
&gt; but the horde_syncml_map table remains unchanged.
&gt;
&gt; Is this intended?

Kind of, but there is another ticket about that already (or some discussion on the mailing list?).</description>
   <pubDate>Thu, 25 Sep 2008 12:54:29 -0400</pubDate>
   <link>http://bugs.horde.org/ticket/6749#t49241</link>
  </item>
  <item>
   <title>The other issue 6746 got closed as duplicate and I just upgr</title>
   <description>The other issue 6746 got closed as duplicate and I just upgraded to Webmail 1.2 which was supposed to fix my realm/rpc issue but it doesn't. I still get a 404 when trying to access my calendar.</description>
   <pubDate>Tue, 30 Sep 2008 04:25:36 -0400</pubDate>
   <link>http://bugs.horde.org/ticket/6749#t49303</link>
  </item>
  

 </channel>
</rss>
