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.