Netscape DIRECTORY SERVER 6.01 - ADMINISTRATOR Administrator's Manual page 490

Table of Contents

Advertisement

LDIF File Format
If you use this standard notation, you do not need to specify the
parameter. However, you must add the following line to the beginning of your
LDIF file, or your LDIF update statements:
version:1
For example, you could use the following
prompt% ldapmodify -D userDN -w user_passwd
>version: 1
>dn: cn=Barney Fife,ou=People,dc=example,dc=com
changetype: modify
add: userCertificate
userCertificate;binary:< file: BarneysCert
Using base 64 encoding. You identify base 64 encoded data by using the ::
symbol. For example:
jpegPhoto:: encoded_data
In addition to binary data, other values that must be base 64-encoded include:
Any value that begins with a semicolon (;) or a space
Any value that contains non-ASCII data, including new lines
Use the
LDIF format:
ldif -b
where attribute_name is the name of the attribute to which you are supplying the
binary data. The binary data is read from standard input and the results are written
to standard output. Thus, you should use redirection operators to select input and
output files.
The
ldif
line continuation and appropriate attribute information. The
assesses whether the input requires base 64 encoding. For example:
ldif -b jpegPhoto < mark.jpg > out.ldif
This example takes a binary file containing a JPEG-formatted image and converts it
into LDIF format for the attribute named
out.ldif
The
-b
single binary value. If
input value.
490
Netscape Directory Server Administrator's Guide • January 2002
command-line utility with the
ldif
attribute_name
command-line utility will take any input and format it with the correct
.
option specifies that the
is not present, each line is considered to be a separate
-b
ldapmodify
parameter to convert binary data to
-b
. The output is saved to
jpegPhoto
utility should interpret the entire input as a
ldif
ldapmodify -b
command:
utility also
ldif

Advertisement

Table of Contents
loading

This manual is also suitable for:

Directory server 6.01

Table of Contents