467
Appendix A. LDAP Data Interchange
Format
Red Hat Directory Server (Directory Server) uses the LDAP Data Interchange Format (LDIF) to
describe a directory and directory entries in text format. LDIF is commonly used to build the initial
directory database or to add large numbers of entries to the directory all at once. In addition, LDIF
is also used to describe changes to directory entries. For this reason, most of Directory Server's
command-line utilities rely on LDIF for either input or output.
Because LDIF is a text file format, LDIF files can be created using virtually any language. All directory
data is stored using the UTF-8 encoding of Unicode. Therefore, the LDIF files created must also be
UTF-8 encoded.
For information on using LDIF to modify directory entries, see
Chapter 2, Creating Directory Entries
.
A.1. About the LDIF File Format
LDIF consists of one or more directory entries separated by a blank line. Each LDIF entry consists of
an optional entry ID, a required distinguished name, one or more object classes, and multiple attribute
definitions.
The LDIF format is defined in RFC 2849,
The LDAP Data Interchange Format (LDIF)
. Directory Server
is compliant with this standard.
The basic form of a directory entry represented in LDIF is as follows:
dn:
distinguished_name
objectClass:
object_class
objectClass:
object_class
...
attribute_type
[;
subtype
]:
attribute_value
...
• Every LDIF entry must have a DN and at least one object class definition.
• Include any attributes required by the object classes defined for the entry.
• All other attributes and object classes are optional.
• Object classes and attributes can be specified in any order.
• The space after the colon is optional.
Table A.1, “LDIF Fields”
describes the LDIF fields shown in the previous definition.
Field
Definition
[
id
]
Optional
. A positive decimal number representing
the entry ID. The database creation tools
generate this ID automatically. Never add or edit
this value yourself.
dn:
distinguished_name
Specifies the distinguished name for the entry.
Summary of Contents for DIRECTORY SERVER 8.0
Page 18: ...xviii ...
Page 29: ...Configuring the Directory Manager 11 6 Enter the new password and confirm it 7 Click Save ...
Page 30: ...12 ...
Page 112: ...94 ...
Page 128: ...110 ...
Page 190: ...Chapter 6 Managing Access Control 172 4 Click New to open the Access Control Editor ...
Page 224: ...206 ...
Page 324: ...306 ...
Page 334: ...316 ...
Page 358: ...340 ...
Page 410: ...392 ...
Page 420: ...402 ...
Page 444: ...426 ...
Page 454: ...436 ...
Page 464: ...446 ...
Page 484: ...466 ...
Page 512: ...494 ...
Page 522: ...504 ...