Adding An Entry Using Ldif - Netscape DIRECTORY SERVER 6.02 - ADMINISTRATOR Administrator's Manual

Table of Contents

Advertisement

-
change_operation_identifier
list_of_attributes
-
A dash (-) must be used to denote the end of a change operation if subsequent
change operations are specified. For example, the following statement adds the
telephone number and manager attributes to the entry:
dn: cn=Lisa Jangles,ou=People,dc=example,dc=com
changetype: modify
add: telephonenumber
telephonenumber: (408) 555-2468
-
add: manager
manager: cn=Harry Cruise,ou=People,dc=example,dc=com
In addition, the line continuation operator is a single space. Therefore, the
following two statements are identical:
dn: cn=Lisa Jangles,ou=People,dc=example,dc=com
dn: cn=Lisa Jangles,
ou=People,
dc=example,dc=com
The following sections describe the change types in detail.

Adding an Entry Using LDIF

Use
changetype: add
make sure to create an entry representing a branch point before you try to create
new entries under that branch. That is, if you want to place an entry in a People
and a Groups subtree, then create the branch point for those subtrees before
creating entries within the subtrees.
The following LDIF update statements can be used to create the People and the
Groups subtrees, and then create entries within those trees:
dn: dc=example,dc=com
changetype: add
objectclass: top
objectclass: organization
o: example.com
to add an entry to your directory. When you add an entry,
LDIF Update Statements
Chapter 2
Creating Directory Entries
59

Advertisement

Table of Contents
loading

This manual is also suitable for:

Directory server 6.02

Table of Contents