LDIF import problems #40

Open
opened 2015-09-25 05:00:53 +00:00 by deon · 2 comments
deon commented 2015-09-25 05:00:53 +00:00 (Migrated from gitlab.dege.au)

Hi Deon,

There are several problems around LDIF import:

  • Entry following the "version:" specification is not processed unless preceded by a blank line.
  • Data gets trimmed too often, resulting in significant leading/trailing spaces being lost.
  • Continuation lines of a folded comment get appended to the previous attribute.
  • URLs are silently ignored.

You can find data to reproduce here.

  • Download attrdata.txt and bugs.ldif to /the/path/of/your/choice/.
  • Edit bugs.ldif, replace '/path/to/file/' by '/the/path/of/your/choice/' and 'dc=your_ldap_domain' by the base dn you want to use for tests.
  • in PLA, import file /the/path/of/your/choice/bugs.ldif.

See comments in the ldif file for detailed explanations.

The file phpldapadmin-1.2.3-importldif.patch fixes all these problems (URLs are still disabled with an "unimplemented" error for security reasons).

I used RFC2849 as the standards reference.

Don't hesitate to ask if you need more info.

Best regards,

Patrick

Hi Deon, There are several problems around LDIF import: * Entry following the "version:" specification is not processed unless preceded by a blank line. * Data gets trimmed too often, resulting in significant leading/trailing spaces being lost. * Continuation lines of a folded comment get appended to the previous attribute. * URLs are silently ignored. You can find data to reproduce [here](http://www.datasphere.ch/store/7XS3f5p7K4PU6zcVj5P-UrzHieUYmIj2LAb-UPUZs7FGwkUHr3ztjT5kOuoyxAPNGhh8OqcO-jQcGOs). * Download attrdata.txt and bugs.ldif to /the/path/of/your/choice/. * Edit bugs.ldif, replace '/path/to/file/' by '/the/path/of/your/choice/' and 'dc=your_ldap_domain' by the base dn you want to use for tests. * in PLA, import file /the/path/of/your/choice/bugs.ldif. See comments in the ldif file for detailed explanations. The file phpldapadmin-1.2.3-importldif.patch fixes all these problems (URLs are still disabled with an "unimplemented" error for security reasons). I used RFC2849 as the standards reference. Don't hesitate to ask if you need more info. Best regards, Patrick
deon commented 2015-09-25 05:03:42 +00:00 (Migrated from gitlab.dege.au)

mentioned in issue #26

mentioned in issue #26
deon commented 2020-08-23 02:36:10 +00:00 (Migrated from gitlab.dege.au)

mentioned in commit 733a10a1c5

mentioned in commit 733a10a1c57568bd5294d527f324fb220c8ee76c
Sign in to join this conversation.
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: deon/phpldapadmin#40
No description provided.