Defining Directories Using LDIF
473
LDIF Element
Description
during search operations for an organizational
person.
objectClass: inetOrgPerson
Specifies the
inetOrgPerson
object class. The
inetOrgPerson
object class is recommended
for the creation of an organizational person entry
because this object class includes the widest
range of attributes. The
uid
attribute is required
by this object class, and entries that contain this
object class are named based on the value of the
uid
attribute.
cn:
common_name
Specifies the person's common name, which is
the full name commonly used by the person. For
example,
cn: Bill Anderson
. At least one
common name is required.
sn:
surname
Specifies the person's surname, or last name.
For example,
sn: Anderson
. A surname is
required.
list_of_attributes
Specifies the list of optional attributes to maintain
for the entry.
Table A.4. LDIF Elements in Person Entries
A.5. Defining Directories Using LDIF
The contents of an entire directory can be defined using LDIF. Using LDIF is an efficient method of
directory creation when there are many entries to add to the directory.
To create a directory using LDIF, do the following:
1. Create an ASCII file containing the entries to add in LDIF format.
Make sure each entry is separated from the next by an empty line. Use just one line between
entries, and make sure the first line of the file is not be blank, or else the
ldapmodify
utility will
exit. For more information, refer to
Section A.4, “Specifying Directory Entries Using LDIF”
.
2. Begin each file with the topmost, or root, entry in the database.
The root entry must represent the suffix or sub-suffix contained by the database. For example,
if the database has the suffix
dc=example,dc=com
, the first entry in the directory must be
dn:
dc=example,dc=com
.
For information on suffixes, see the "Suffix" parameter described in the
Directory Server
Configuration, Command, and File Reference
.
3. Make sure that an entry representing a branch point in the LDIF file is placed before the entries to
create under that branch.
For example, to place an entry in a people and a group subtree, create the branch point for those
subtrees before creating entries within those subtrees.
Содержание DIRECTORY SERVER 8.0
Страница 18: ...xviii ...
Страница 29: ...Configuring the Directory Manager 11 6 Enter the new password and confirm it 7 Click Save ...
Страница 30: ...12 ...
Страница 112: ...94 ...
Страница 128: ...110 ...
Страница 190: ...Chapter 6 Managing Access Control 172 4 Click New to open the Access Control Editor ...
Страница 224: ...206 ...
Страница 324: ...306 ...
Страница 334: ...316 ...
Страница 358: ...340 ...
Страница 410: ...392 ...
Страница 420: ...402 ...
Страница 444: ...426 ...
Страница 454: ...436 ...
Страница 464: ...446 ...
Страница 484: ...466 ...
Страница 512: ...494 ...
Страница 522: ...504 ...