Question: how to write ldif file?
Answer: The lines that follow begin with the name for an attribute type, followed by the value to be associated with that attribute. Note that the photo attribute value begins with a forward slash ( \ ) to denote that it is a binary file reference. Each entry ends with lines defining the object classes for the entry.