RFC 2489 (LDAP Data Interchange Format) says: "An LDIF file consists of a series of records separated by line separators."
This implies that there should not be a blank line at the end of an LDIF file (separator vs. terminator). Believe it or not, this caused a rather heated discussion...
LDAPSEARCH will always include a trailing newline if there is data; is this technically correct behaviour?