[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
ldapadd rejects zero-length attribute value in ldif (ITS#3363)
Full_Name: Victor CHEVALIER
Version: 2.2.11
OS: Linux
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (194.98.7.155)
Hi,
When a ldif file contains zero-length attribute values, ldapadd rejects the
entry with an "Invalid syntax(21)" error.
However in the rfc it says :
5) When a zero-length attribute value is to be included directly
in an LDIF file, it MUST be represented as
AttributeDescription ":" FILL SEP. For example, "seeAlso:"
followed by a newline represents a zero-length "seeAlso"
attribute value. It is also permissible for the value
referred to by a URL to be of zero length.
So, I think that ldapadd should only ignore these zero-length values, shouldn't
it ?
LDIF example :
version: 1
dn: ou=test-ldif,o=gouv,c=fr
changetype: add
objectClass: top
objectClass: organizationalUnit
ou: test-ldif
description:
o: organization
Victor