[sync] Can not sync contacts from LDAP addressbook

Mehmet Giritli mgiritli at giritli.eu
Thu Feb 10 23:54:15 UTC 2011


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?

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',
>      ),
> 
> 
> 
> > 
> > Jan.
> > 
> > -- 
> > Do you need professional PHP or Horde consulting?
> > http://horde.org/consulting/
> > 
> 
> 




More information about the sync mailing list