LDIF Update Statements
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
and a
creating entries within the subtrees.
The following LDIF update statements can be used to create the
Groups
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
64
Red Hat Directory Server Administrator's Guide • May 2005
to add an entry to your directory. When you add an entry,
subtree, then create the branch point for those subtrees before
Groups
subtrees and then to create entries within those trees:
People
and the
People
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