Appendix A. LDAP Data Interchange Format
470
A.4. Specifying Directory Entries Using LDIF
Many types of entries can be stored in the directory. This section concentrates on three of the most
common types of entries used in a directory: domain, organizational unit, and organizational person
entries.
The object classes defined for an entry are what indicate whether the entry represents a domain or
domain component, an organizational unit, an organizational person, or some other type of entry.
A.4.1. Specifying Domain Entries
Directories often have at least one domain entry. Typically this is the first, or topmost, entry in the
directory. The domain entry often corresponds to the DNS host and domain name for your directory.
For example, if the Directory Server host is called
ldap.example.com
, then the domain entry for the
directory is probably named
dc=ldap,dc=example,dc=com
or simply
dc=example,dc=com
.
The LDIF entry used to define a domain appears as follows:
dn:
distinguished_name
objectClass: top
objectClass: domain
dc:
domain_component_name
list_of_optional_attributes
...
The following is a sample domain entry in LDIF format:
dn: dc=example,dc=com
objectclass: top
objectclass: domain
dc: example
description: Fictional example company
Each element of the LDIF-formatted domain entry is defined in
Table A.2, “LDIF Elements in Domain
Entries”
.
LDIF Element
Description
dn:
distinguished_name
Required.
Specifies the distinguished name for
the entry.
objectClass: top
Required.
Specifies the
top
object class.
objectClass: domain
Specifies the
domain
object class. This line
defines the entry as a domain or domain
component.
dc:
domain_component
Attribute that specifies the domain's name. The
server is typically configured during the initial
setup to have a suffix or naming context in the
form
dc=
hostname,
dc=
domain,
dc=
toplevel
.
For example,
dc=ldap,dc=example,dc=com
.
The domain entry should use the leftmost
dc
value, such as
dc: ldap
. If the suffix were
dc=example,dc=com
, the
dc
value is
dc:
example
. Do not create the entry for
dn:
Содержание 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 ...