September 10, 2010, 09:28:53 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Work on Kolab2/Gentoo-2.2 has stopped. The project has been deprecated (see board Kolab2/Gentoo).
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Horde and SyncML  (Read 6936 times)
nullpointer
Newbie
*

Karma: 0
Posts: 6


View Profile
« on: June 19, 2008, 12:20:07 AM »

Any chance to get Horde SyncML working with Kolab. I found this in Kolab development Wiki: SyncML works SQL based. For the Kolab server an SQLite db is the recommended option. OK but how-to configure? Does it mean, that Horde can work with two backends in parallel - Kolab LDAP and SQL database?
Logged
xehqter
Jr. Member
**

Karma: 1
Posts: 94


View Profile WWW
« Reply #1 on: June 19, 2008, 04:19:33 PM »

SyncML works with KoLab (sort of), I'm writing a how-to give me a day or two.
Logged

Gunnar Wrobel
Administrator
Sr. Member
*****

Karma: 2
Posts: 331


275141552 gunnarwrobel@yahoo.de gunnarwrobel
View Profile WWW Email
« Reply #2 on: June 21, 2008, 06:59:30 AM »

Any chance to get Horde SyncML working with Kolab.

The current Horde release (not the Gentoo packages!) should be able sync calendar entries and addressbooks.

Both the Kolab version based on OpenPKG and the one on Gentoo do not yet provide packages that have this ability. As I'm currently working towards that it should not take too long any more.

I found this in Kolab development Wiki: SyncML works SQL based. For the Kolab server an SQLite db is the recommended option. OK but how-to configure? Does it mean, that Horde can work with two backends in parallel - Kolab LDAP and SQL database?

Horde is very modular. That is the reason for the many tabs in the config screen in Horde. Each of these tabs configures a different module. For Kolab the main backend is usually the Kolab driver (which is IMAP storage by the way, not LDAP). But for some subsystems it makes more sense to use SQL based drivers. This is the case for the permission subsystem, the history subsystem (which is a central part for SyncML) and SyncML itself.

Horde configuration can be quite complex so the easiest thing are certainly preconfigured packages. As mentioned above I'm going to try to provide these for Kolab2/Gentoo soon.

For Kolab on OpenPKG it should still take  a few months.

Cheers,

Gunnar
Logged
Gunnar Wrobel
Administrator
Sr. Member
*****

Karma: 2
Posts: 331


275141552 gunnarwrobel@yahoo.de gunnarwrobel
View Profile WWW Email
« Reply #3 on: June 21, 2008, 07:00:01 AM »

SyncML works with KoLab (sort of), I'm writing a how-to give me a day or two.

That would be really nice! Thanks!

Cheers,

Gunnar
Logged
xehqter
Jr. Member
**

Karma: 1
Posts: 94


View Profile WWW
« Reply #4 on: June 22, 2008, 08:37:32 PM »

here is the howto, let me know if I need to make any corrections / additions.
http://www.aplusperfect.com/articles/howto_setup_syncml_on_kolab
Logged

nullpointer
Newbie
*

Karma: 0
Posts: 6


View Profile
« Reply #5 on: July 13, 2008, 05:02:09 PM »

Jeremy, Gunar - thanks for your work on the SyncML howto. I followed the document and used Postgres as database backend. All Horde modules work ... except SyncML Smiley I can not synchronize, probably because I have errors in the configuration.

1. I use the latest Synthesis SyncML client and I always get the error message 'No SyncML response'
2. I am running over https with self signed certificate but I think it should not be any problem.
3. On the server there are entries in the /tmp/horde.log and /tmp/sync/... but I do not have enough skills to analyze the content. Anyway it seems not to work properly - I can not convert client_11.wbxml to xml (error msg 'Unknown Public ID') and server_11.wbxml to xml (error msg 'Bad Parameter')

Can anybody tell where to start bug hunting ?

Logged
Gunnar Wrobel
Administrator
Sr. Member
*****

Karma: 2
Posts: 331


275141552 gunnarwrobel@yahoo.de gunnarwrobel
View Profile WWW Email
« Reply #6 on: July 30, 2008, 07:07:01 AM »

There should be a log file in /tmp/sync/. Can you paste that somewhere?
Logged
nullpointer
Newbie
*

Karma: 0
Posts: 6


View Profile
« Reply #7 on: August 18, 2008, 10:07:16 PM »

I played a bit more, but still not working. Error message (Synthesis SyncML, syncing contacts)

Sync failed: Invalid data from server (wrong URL)

Here is the log (user and domain faked):


DEBUG:  Backend of class SyncML_Backend_Horde created
DEBUG:  Started at 2008-08-18 23:00:37. Packet logged in /tmp/sync/client_10.wbxml
DEBUG:  New session created: bbfd615bef54544901bec413bdb9c5bf
DEBUG:  Checking authentication for user xxxxx
DEBUG:  Authenticated: yes; version: 1.2; message ID: 1; source URI: bd7d18a7ec9c2688bd0e44ef462f08ab347c7536; target URI: http://www.mydomain.com/horde/rpc.php; user: xxxxx; charset: UTF-8; wbxml: yes
DEBUG:  SQL Query by SyncML_Backend_Horde::eraseMap(): DELETE FROM horde_syncml_map WHERE syncml_syncpartner = ? AND syncml_db = ? AND syncml_uid = ?, values: bd7d18a7ec9c2688bd0e44ef462f08ab347c7536, contacts, xxxxx
DEBUG:  Creating SyncML_Sync object for database contacts; sync type 203
DEBUG:  Received <Final> from client.
DEBUG:  Handle <Final> for state Init
DEBUG:  Sending <Final> to client
DEBUG:  Return message completed
DEBUG:  Finished at 2008-08-18 23:00:37. Packet logged in /tmp/sync/server_10.wbxml

DEBUG:  Backend of class SyncML_Backend_Horde created
DEBUG:  Started at 2008-08-18 23:00:45. Packet logged in /tmp/sync/client_11.wbxml
DEBUG:  Finished at 2008-08-18 23:00:45. Packet logged in /tmp/sync/server_11.wbxml
Logged
Gunnar Wrobel
Administrator
Sr. Member
*****

Karma: 2
Posts: 331


275141552 gunnarwrobel@yahoo.de gunnarwrobel
View Profile WWW Email
« Reply #8 on: September 08, 2008, 10:05:13 AM »

That log looks like some PHP errors have been hit. Any such errors in you PHP error log?

Cheers,

Gunnar
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!