[sync] Can not sync contacts from LDAP addressbook
Mehmet Giritli
mgiritli at giritli.eu
Fri Feb 11 16:54:22 UTC 2011
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/
>
Unfortunately, I am stuck again. I still can not get any syncing done. I
tried all combinations for __key and __uid, but I get weird results.
Once it did like 4 contact syncs but the most of the time I get no
syncs. Now, I do not get ANY errors in the horde file. Neither the phone
reports an error. I really have no idea what to do. Could you give me
some tips? Is there a verbose/debug switch for horde where I can see
whats going on during syncing?
And for the fields which are not synced, I think my phone syncs them
over nokia's own software. So there must be a mismatch somewhere.
Nickname is especially important for me as the voice dialing depends on
this. Well, I need to get syncing fixed in the first place anyways.
More information about the sync
mailing list