https://bugs.openldap.org/show_bug.cgi?id=10412
Issue ID: 10412 Summary: slapadd stops if the ldif files starts with 'version:' Product: OpenLDAP Version: 2.6.10 Hardware: All OS: All Status: UNCONFIRMED Keywords: needs_review Severity: normal Priority: --- Component: client tools Assignee: bugs@openldap.org Reporter: elecharny@apache.org Target Milestone: ---
Injecting data with slapadd fails if the file starts with 'version: 1', with such a message:
str2entry: entry -1 has no dn slapadd: could not parse entry (line=1)
A LDIF file starting with 'version: 1' is a valid LDIF file per RFC 2849:
ldif-file = ldif-content / ldif-changes ldif-content = version-spec 1*(1*SEP ldif-attrval-record) version-spec = "version:" FILL version-number version-number = 1*DIGIT ; version-number MUST be "1" for the ; LDIF format described in this document.
https://bugs.openldap.org/show_bug.cgi?id=10412
--- Comment #1 from elecharny@apache.org --- Same answer than for 10411: slapcat generates a proper ldif file, with no version: at the begining.
So this ticket can be closed.
https://bugs.openldap.org/show_bug.cgi?id=10412
elecharny@apache.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |INVALID
https://bugs.openldap.org/show_bug.cgi?id=10412
Quanah Gibson-Mount quanah@openldap.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |VERIFIED Keywords|needs_review |