202-450 practice question 10 of 25

Which of the following statements is INCORRECT regarding the LDIF file format?

Full set: 119 questions
Answer options
A: It contains a dn line that indicates where the attributes listed in the following lines of the file must be added.
B: In the file, a blank line separates one entry from another one.
C: If an attribute contains binary data, some specific configurations must be made for this entry.
D: The LDIF file accepts any type of file encoding. Correct answer
Correct Answer:
D. The LDIF file accepts any type of file encoding.
Explanation

The LDAP Data Interchange Format (LDIF) specification, defined in RFC 2849, mandates a specific character encoding. While the default and recommended encoding is UTF-8, the specification allows for the character set to be explicitly defined. However, it does not accept "any type" of file encoding without proper declaration and support from the parsing tool. Arbitrary encodings can lead to parsing errors and data corruption.

Why Incorrect

A. The dn line is fundamental to LDIF; it specifies the Distinguished Name of the entry, which is its unique location in the directory information tree.
B. A blank line is the standard delimiter used in the LDIF format to separate distinct directory entries from one another.
C. Binary data (like a JPEG image) must be Base64 encoded. This is indicated by using a double colon (::) after the attribute type.

References

- RFC 2849, "The LDAP Data Interchange Format (LDIF) - Technical Specification", Section 5: "Character Set". It states, "An LDIF file is by default written using the UTF-8 character set...".

- OpenLDAP Software 2.4 Administrator's Guide, Section 8.1.1: "LDIF". It describes the format, including the use of blank lines as separators and Base64 encoding for non-ASCII data.

- Mozilla Developer Network (MDN) Web Docs, "LDAP Data Interchange Format (LDIF)". This document confirms that LDIF files are text files and that non-safe characters or binary data must be Base64 encoded.

Scroll to Top