[sync] Can not sync contacts from LDAP addressbook

Mehmet Giritli mgiritli at giritli.eu
Fri Feb 11 17:21:01 UTC 2011


Hey,

I have found a weird pattern.

There are two sync server versions with my nokia. They are 1.1 and 1.2.
As mention on the horde sync pages, 1.2 gives a system error on the
phone. I get no errors with version 1.1 but as I have been crying out, I
cant get it to sync anything.

Now I discovered this: If you first set your server version to 1.2, get
the "system error" and then set the version back to 1.1, you will get
sync properly done. But the next sync will fail with version 1.1 as well
(no errors though), unless you try with version 1.2 first. So, you have
to repeat this procedure every time to have your sync!

I tried this many times already and it happens every time. This is no
coincidence.

Any ideas from this point on?

Moreover, I am thinking that the server version 1.1 also has something
to do with the attributes that are not included in the sync, as I
mentioned earlier.

On Fri, 2011-02-11 at 10:26 +0100, Jan Schneider wrote:
> Zitat von Mehmet Giritli <mgiritli at giritli.eu>:
> 
> > On Thu, 2011-02-10 at 11:57 +0200, Mehmet Giritli wrote:
> >> On Thu, 2011-02-10 at 10:44 +0100, Jan Schneider wrote:
> >> > Zitat von Mehmet Giritli <mgiritli at giritli.eu>:
> >> >
> >> > > Hi,
> >> > >
> >> > > I am trying to sync my contacts with a turba addressbook which is
> >> > > ldap-based. Everything works within turba and I am able to sync notes
> >> > > and calendar with my mobile (nokia e63) without any problems. However,
> >> > > none of the contacts appear on my phone after sync. I emptied all the
> >> > > contacts from my phone, cleared all syncml data from horde and tried it
> >> > > many times but I couldnt get it to sync even one contact.
> >> > >
> >> > > Phone doesn't give any errors. But in horde logs I see this:
> >> > >
> >> > > Feb 10 10:49:30 gollum HORDE[21739]: [horde] API export call for
> >> > > failed: Invalid ID [pid 21739 on line 497 of
> >> > > "/var/www/horde/htdocs/horde/lib/SyncML/Sync.php"]
> >> > >
> >> > > Of course, I have selected the ldap addressbook to sync from the
> >> > > options, needless to say. And as I already mentioned, everything works
> >> > > fine with turba, browsing, editing contacts and so on. Any ideas?
> >> > >
> >> > > Turba 2.3.5
> >> > > Horde 3.3.11
> >> >
> >> > Do you have __uid mapped to some ldap attribute in your
> >> > turba/config/sources.php?
> >>
> >> Here is a copy-paste of my map array. As you can see, the answer to your
> >> question is yes. I also have __key. So, should I remove these or what?
> >>
> >>      'map' => array(
> >>          '__key' => 'dn',
> >> //
> >> //         // Remove this mapping if using Active Directory server:
> >>          '__uid' => 'uid',
> >> //
> >> //         // From horde.schema.  Make sure you have 'turbaContact'
> >> objectClass
> >> //         // included above:
> >> //         // '__type' => 'turbaType',
> >> //         // '__members' => 'turbaMembers',
> >> //
> >>          'name' => 'cn',
> >>         'firstname' => 'givenName',
> >>         'lastname' => 'sn',
> >> //      'middlenames' => 'initials',
> >>          'emails' => 'mail',
> >>          'photo' => 'jpegPhoto',
> >>         'category' => 'category',
> >>         'alias' => 'displayName',
> >>         'fileas' => 'fileAs',
> >>          'homePhone' => 'homephone',
> >>          'workPhone' => 'telephonenumber',
> >>          'cellPhone' => 'mobile',
> >>          'otherPhone' => 'otherPhone',
> >>          'homeAddress' => 'homepostaladdress',
> >>         'otherAddress' => 'otherpostaladdress',
> >>         'birthday' => 'birthDay',
> >>         'anniversary' => 'anniversary',
> >>
> >> //
> >> //         // From rfc2739.schema:
> >> //         // 'freebusyUrl' => 'calFBURL',
> >> //
> >> //         // For Active Directory servers:
> >> //         // 'name' => 'displayname',
> >> //         // 'title' => 'title',
> >> //         // 'cellPhone' => 'mobile',
> >> //         // 'department' => 'department',
> >> //         // 'company' => 'company',
> >>      ),
> >>
> > Hi,
> >
> > I managed to get my contacts synced by mapping __uid to cn. Thank you
> > for our input.
> >
> > But now, I see that some fields  are not included in the sync. For
> > example, I cant get nicknames, category and photo attributes to sync. Is
> > there a file I can edit to get these included in the sync?
> 
> All three are supported for synching generally. But it could depend on  
> your synching device and its data format whether they are actually  
> used during synchronization.
> 
> Jan.
> 
> -- 
> Do you need professional PHP or Horde consulting?
> http://horde.org/consulting/
> 




More information about the sync mailing list