LDIF Update Statements
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
dn: ou=People, dc=example,dc=com
changetype: add
objectclass: top
objectclass: organizationalUnit
ou: People
ou: Marketing
dn: cn=Pete Minsky,ou=People,dc=example,dc=com
changetype: add
objectclass: top
objectclass: person
objectclass: organizationalPerson
objectclass: inetOrgPerson
cn: Pete Minsky
givenName: Pete
sn: Minsky
ou: People
ou: Marketing
uid: pminsky
dn: cn=Sue Jacobs,ou=People,dc=example,dc=com
changetype: add
objectclass: top
objectclass: person
objectclass: organizationalPerson
objectclass: inetOrgPerson
cn: Sue Jacobs
givenName: Sue
64
Netscape Directory Server Administrator's Guide • December 2003
to add an entry to your directory. When you add an entry,
Need help?
Do you have a question about the NETSCAPE DIRECTORY SERVER 6.2 - ADMINISTRATOR and is the answer not in the manual?
Questions and answers