Horde Turba export in ldif
by
Herbert Straub
—
last modified
2008-03-23 11:37
—
filed under:
BugOpen
The conversion of exported Horde Turba ldif addressbook data doesn't work as expected.
Status
- open
- Horde Bug Nr 6517
Bug Situation
The imported address book data doesn't show the correct names.
Normal Situation
With this patch, the displayed data looks good.
Testcase
Horde - Addressbook - Export - choose LDIF Addressbook - save to file. This file contains for example:
dn: cn=,mail=herbert@linuxhacker.at
objectclass: top
objectclass: person
objectclass: organizationalPerson
objectclass: inetOrgPerson
objectclass: mozillaAbPersonAlpha
givenName: Straub
sn: Herbert
mail: herbert@elsewhere
company: ,
description: undefined
modifytimestamp: 0Z
The cn attribute is empty. The cn can be constructed from firstname and lastname. See patch
Patch
I modified the lib/Data/ldif.php and construct the name attribute, if not available, from firstname and the lastname. See horde-3.2-rc3-turba-export-ldif.patch
Test
Now, it looks correct:
dn: cn=Straub Herbert,mail=herbert@linuxhacker.at
objectclass: top
objectclass: person
objectclass: organizationalPerson
objectclass: inetOrgPerson
objectclass: mozillaAbPersonAlpha
cn: Straub Herbert
givenName: Straub
sn: Herbert
mail: herbert@elsewhere
company: ,
description: undefined
modifytimestamp: 0Z

Previous:
Dimp Other Actions Menu fails
