|Skip Navigation Links|
|Exit Print View|
|Oracle Directory Server Enterprise Edition Man Page Reference 11g Release 1 (220.127.116.11.0)|
- format input by adding base64 encoding to make it suitable for inclusion in an LDIF file
install-path/bin/ldif [-b] attrtype
The ldif command formats input by adding base64 encoding to make it suitable for inclusion in an LDIF file. This makes it easy to include binary data, such as JPEG images, along with other textual attribute values. In an LDIF file, base64 encoded attribute values are indicated as ::encoded data.
In addition to binary data, other values that must be base64 encoded include any value that begins with a semicolon (;) or a space, and any value that contains non-ASCII data, including newlines. The ldif command takes any input and formats it with the correct line continuation and appropriate attribute information.
The following options are supported:
Specifies that the ldif command should interpret the entire input as a single binary value.
As an alternative to the -b option, you can use the :<URL specifier notation, which is simpler to use. For example, jpegphoto:<file:///tmp/myphoto.jpg. Although the official notation requires three /// the use of one / is tolerated.
The following exit values are returned:
An error occurred.
On error, verbose error messages are output to standard output.
See attributes(5) for descriptions of the following attributes: