Example: LDIF

Here is an example of an LDIF file containing three entries.

      dn: cn=John E Doe, o=University of High
       er Learning, c=US
      cn: John E Doe
      cn: John Doe
      objectclass: person
      sn: Doe

      dn: cn=Bjorn L Doe, o=University of High
       er Learning, c=US
      cn: Bjorn L Doe
      cn: Bjorn Doe
      objectclass: person
      sn: Doe

      dn: cn=Jennifer K. Doe, o=University of High
       er Learning, c=US
      cn: Jennifer K. Doe
      cn: Jennifer Doe
      objectclass: person
      sn: Doe
      jpegPhoto:: /9j/4AAQSkZJRgABAAAAAQABAAD/2wBDABALD
       A4MChAODQ4SERATGCgaGBYWGDEjJR0oOjM9PDkzODdASFxOQ
       ERXRTc4UG1RV19iZ2hnPk1xeXBkeFxlZ2P/2wBDARESEhgVG
      ...

The jpegPhoto in Jennifer Jensen's entry is encoded using base-64. The textual attribute values can also be specified in base-64 format. However, if this is the case, the base-64 encoding must be in the code page of the wire format for the protocol (that is, for LDAP V2, the IA5 character set and for LDAP V3, the UTF-8 encoding).