Version 1 LDIF support

 

The client utilities (ldapmodify and ldapadd) have been enhanced to recognize the latest version of LDIF, which is identified by the presence of the "version: 1" tag at the head of the file. Unlike the original version of LDIF, the newer version of LDIF supports attribute values represented in UTF-8 (instead of the very limited US-ASCII).

However, manual creation of an LDIF file containing UTF-8 values might be difficult. In order to simplify this process, a charset extension to the LDIF format is supported. This extension allows an IANA character set name to be specified in the header of the LDIF file (along with the version number). A limited set of the IANA character sets are supported.

The version 1 LDIF format also supports file URLs. This provides a more flexible way to define a file specification. File URLs take the following form:

      attribute:< file:///path          (where path syntax depends on platform)

For example, the following are valid file Web addresses:

      jpegphoto:< file:///d:\temp\photos\myphoto.jpg    (DOS/Windows style paths)
      jpegphoto:< file:///etc/temp/photos/myphoto.jpg   (Unix style paths)

The IBM Directory utilities support both the new file URL specification as well as the older style ("jpegphoto: /etc/temp/myphoto"), regardless of the version specification. In other words, the new file URL format can be used without adding the version tag to your LDIF files.

 

Parent topic:

LDAP data interchange format (LDIF)