LDIF File Format
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
attribute_type[;subtype]:attribute_value
...
You must supply the DN and at least one object class definition. In addition, you
must include any attributes required by the object classes that you define for the
entry. All other attributes and object classes are optional. You can specify object
classes and attributes in any order. The space after the colon is also optional. For
information on standard object classes and attributes, refer to Red Hat Directory
Server Schema Reference.
Table A-1 describes the LDIF fields shown in the previous definition.
Table A-1
Field
[id]
dn: distinguished_name
objectClass: object_class
attribute_type
574
Red Hat Directory Server Administrator's Guide • May 2005
LDIF Fields
Definition
Optional. A positive decimal number representing the
entry ID. The database creation tools generate this ID for
you. Never add or edit this value yourself.
Specifies the distinguished name for the entry. For a
complete description of distinguished names, refer to the
Red Hat Directory Server Deployment Guide.
Specifies an object class to use with this entry. The object
class identifies the types of attributes, or schema, allowed
and required for the entry. See the Red Hat Directory
Server Schema Reference for a list of standard object classes
and chapter 9, "Extending the Directory Schema," for
information on customizing the schema.
Specifies a descriptive attribute to use with the entry. The
attribute should be defined either in the schema. See the
Red Hat Directory Server Schema Reference for a list of
standard attributes and chapter 9, "Extending the
Directory Schema," for information on customizing the
schema.
Need help?
Do you have a question about the DIRECTORY SERVER 7.1 - ADMINISTRATOR and is the answer not in the manual?
Questions and answers