Issue 4033 - Enhancement requests : Need LDIF parsing API's
Summary: Enhancement requests : Need LDIF parsing API's
Status: VERIFIED DUPLICATE of issue 6194
Alias: None
Product: OpenLDAP
Classification: Unclassified
Component: slapd (show other issues)
Version: unspecified
Hardware: All All
: --- normal
Target Milestone: ---
Assignee: OpenLDAP project
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-09-16 07:24 UTC by rravi@novell.com
Modified: 2021-08-03 17:58 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description rravi@novell.com 2005-09-16 07:24:01 UTC
Full_Name: RAVI CR
Version: Current
OS: LINUX
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (202.144.95.244)


Feature requests :  Need LDIF parsing API's 
Developers want  to use  these  API's in their application for parsing the LDIF
files.

Present LDIF API's: 
The API's only provides lexical analysis part of LDIF handing and not the actual
LDIF parsing.  The routines only handle line continuations and breaking lines
around the colon.  They do not parse LDIF elements, such as an
ldif-attrval-record or ldif-change-record, into C structures.  The caller of
these routines is expected to do that parsing. (For EG :    ldapmodify.c  code 
handles the LDIF parsing).

Requirement: 
A high-level LDIF API Set should be designed and implemented as a library. This
API would define C structures for LDIF elements such as ldif-attrval-record and
ldif-change-record, and provide facilities for translating them to LDAPMod
structures.

Comment 1 ando@openldap.org 2005-09-17 14:14:35 UTC
changed notes
moved from Incoming to Software Enhancements
Comment 2 Kurt Zeilenga 2005-10-12 22:00:58 UTC
changed notes
Comment 3 ando@openldap.org 2005-12-26 15:00:55 UTC
changed state Open to Feedback
Comment 4 rich.megginson@gmail.com 2010-01-04 21:09:14 UTC
See also 
http://www.openldap.org/its/index.cgi/Software%20Enhancements?id=6194;selectid=6194

An API that returned LDAPMod ** and LDAPControl ** would be sufficient 
for all cases, including the LDAP ADD and any LDAP modify cases.  The 
current discussion revolves around exposing the high level LDAPMod and 
LDAPControl APIs to the lower level libldif, or just passing the parsed 
values as lists of struct berval *

Comment 5 Hallvard Furuseth 2011-11-25 10:07:23 UTC
changed state Feedback to Open
Comment 6 OpenLDAP project 2014-08-01 21:04:52 UTC
patch welcomed
Comment 7 Ondřej Kuzník 2020-03-16 21:40:12 UTC

*** This issue has been marked as a duplicate of issue 6194 ***