6.0.0-alpha14
7/2/25

[#2506] LDIF Import/Export
Summary LDIF Import/Export
Queue Turba
Queue Version HEAD
Type Enhancement
State Resolved
Priority 2. Medium
Owners
Requester ericg01 (at) verizon (dot) net
Created 08/24/2005 (7252 days ago)
Due
Updated 03/18/2007 (6681 days ago)
Assigned
Resolved 03/18/2007 (6681 days ago)
Milestone
Patch No

History
03/18/2007 02:46:35 AM Chuck Hagenbuch Comment #12
State ⇒ Resolved
Reply to this comment
Committed, thanks! I tweaked the handling of workAddress and 
homeAddress in ldif.php, let me know if you have any questions about 
that. As I said to Matt on IRC I'd like to see a test for this so we 
can verify that at least the basic case works (just transform a piece 
of data and make sure it comes out right, not worrying about saving to 
Turba).
03/18/2007 02:23:05 AM Chuck Hagenbuch Deleted Original Message
 
03/18/2007 02:22:57 AM Chuck Hagenbuch Deleted Original Message
 
03/16/2007 03:10:10 AM ritaselsky (at) gmail (dot) com Comment #11
New Attachment: ldif.patch Download
Reply to this comment
- Add a BC check in Turba so that the LDIF features will only be used
with an recent enough Horde version.
Should this be moved to a Turba_Data package since it is very Turba specific?
I moved the LDIF class to turba/lib/Data to avoid the BC issue.
02/27/2007 03:20:31 AM ritaselsky (at) gmail (dot) com Comment #10
New Attachment: ldifPort.patch
Reply to this comment
I have still have a few things I would like to see changed:
- Please use "Copyright 2007 The Horde Project
(http://www.horde.org/)" for the file header.
Done.
- Always use curly braces.
Done.
- Is it possible to reduce the large "case" lists, i.e. by making
them the "default" case, using in_array(), or similar?
Done.
- Add a BC check in Turba so that the LDIF features will only be used
with an recent enough Horde version.
Should this be moved to a Turba_Data package since it is very Turba specific?


02/19/2007 09:49:58 AM Jan Schneider Comment #9 Reply to this comment
I have still have a few things I would like to see changed:

- Please use "Copyright 2007 The Horde Project 
(http://www.horde.org/)" for the file header.

- Add a BC check in Turba so that the LDIF features will only be used 
with an recent enough Horde version.

- Always use curly braces.

- Is it possible to reduce the large "case" lists, i.e. by making them 
the "default" case, using in_array(), or similar?
02/19/2007 09:39:28 AM Jan Schneider Deleted Original Message
 
02/18/2007 09:19:05 PM ritaselsky (at) gmail (dot) com Comment #8
New Attachment: ldifPort[1].patch
Reply to this comment
We now support all elements from config/attributes.php that have 
counterparts in LDIF.

If addresses in Turba are split out, there is a one-to-one mapping to 
LDIF.  If they are not split out, the address is stored in one field, 
mozillaWorkStreet2 or mozillaHomeStreet2.
01/22/2007 04:34:42 PM Chuck Hagenbuch State ⇒ Feedback
 
01/22/2007 10:22:50 AM Jan Schneider Comment #7 Reply to this comment
Needed? I don't know, I don't even need LDIF import. ;-) Some people 
might find it is useful, for example to migrate an addressbook from 
SQL to LDAP.

Anyway, the default Turba SQL scheme is only one of many possible, and 
we should at least support all elements from config/attributes.php 
that have counterparts in LDIF. Addresses don't necessarily have to be 
in one large text field.
01/22/2007 03:29:49 AM ritaselsky (at) gmail (dot) com Comment #6
New Attachment: ldifPort.patch
Reply to this comment
Here is the first cut of the patch that supports import and export.   
It only works with mozilla LDIF files.  When exporting turba to LDIF, 
the homeAddress value is put into the homeStreet attribute without any 
attempt to break up the components of the address.  The same holds 
true for the workAddress and street attributes.  Is export actually 
needed given that export is not supported for pine and mulberry 
address books?
12/20/2006 10:03:15 PM Chuck Hagenbuch Comment #5 Reply to this comment
11/24/2006 05:38:15 AM Chuck Hagenbuch Comment #4
New Attachment: ldiftovcard.php Download
Summary ⇒ LDIF Import/Export
Reply to this comment
11/24/2006 05:36:42 AM Chuck Hagenbuch Comment #3
Version ⇒ HEAD
Queue ⇒ Turba
Reply to this comment
Moving to the Turba queue (we may end up implementing this in the 
Horde_Data package, but even that would be Framework, not Horde Base. 
anyway logically it makes sense to me with Turba).
01/16/2006 02:53:17 AM koenige50 (at) hotmail (dot) com Comment #2 Reply to this comment
I support that one. It's a pain to import from csv. There has to be a 
easier of getting a decent address book on the server (with phone 
numbers, addresses, web pages and so on). Thunderbird's address book 
exports in ldif, so it would be very useful to import that into turba.
08/24/2005 03:38:09 PM Jan Schneider State ⇒ Accepted
 
08/24/2005 03:09:17 PM ericg01 (at) verizon (dot) net Comment #1
Priority ⇒ 2. Medium
State ⇒ New
Queue ⇒ Horde Base
Type ⇒ Enhancement
Summary ⇒ LDIF Import/Export for Address Book
Reply to this comment
I would be wonderful if the Horde Address Book would be able to import 
an LDIF file, like the kind Thunderbird will export for its address 
book. I believe such a feature would provide greater reliability in 
the importing of such information.



Of course, exporting to LDIF would be nice as well.

Saved Queries