Specifying Directory Entries Using LDIF
Appendix A
LDAP Data Interchange Format
577
Specifying Directory Entries Using LDIF
You can store many types of entries in your directory. This section concentrates on
three of the most common types of entries used in a directory: organization,
organizational unit, and organizational person entries.
The object classes defined for an entry are what indicate whether the entry
represents an organization, an organizational unit, an organizational person, or
some other type of entry. For a general discussion of the types of entries you can
create in your directory, see the
Red Hat Directory Server Deployment Guide
. For a
complete list of the object classes you can use by default in your directory and a list
of the most commonly used attributes, see the
Red Hat Directory Server Schema
Reference
.
Specifying Organization Entries
Directories often have at least one organization entry. Typically this is the first, or
topmost, entry in your directory. The organization entry often corresponds to the
suffix set for your directory. For example, if your directory is defined to use a suffix
of
dc=example,dc=com
, then you will probably have an organization entry in your
directory named
dc=example,dc=com
.
The LDIF that you specify to define an organization entry should appear as
follows:
dn:
distinguished_name
objectClass: top
objectClass: organization
o:
organization_name
list_of_optional_attributes
...
The following is a sample organization entry in LDIF format:
dn: dc=example,dc=com
objectclass: top
objectclass: organization
o: example.com Corporation
description: Fictional company for example purposes
telephonenumber: 555-5555
The organization name in the following example uses a comma:
Summary of Contents for DIRECTORY SERVER 7.1
Page 1: ...Administrator s Guide Red Hat Directory Server Version7 1 May 2005 Updated February 2009 ...
Page 20: ...20 Red Hat Directory Server Administrator s Guide May 2005 Glossary 619 Index 635 ...
Page 22: ...22 Red Hat Directory Server Administrator s Guide May 2005 ...
Page 26: ...26 Red Hat Directory Server Administrator s Guide May 2005 ...
Page 78: ...Maintaining Referential Integrity 78 Red Hat Directory Server Administrator s Guide May 2005 ...
Page 200: ...Assigning Class of Service 200 Red Hat Directory Server Administrator s Guide May 2005 ...
Page 488: ...488 Red Hat Directory Server Administrator s Guide May 2005 ...
Page 528: ...PTA Plug in Syntax Examples 528 Red Hat Directory Server Administrator s Guide May 2005 ...
Page 572: ...572 Red Hat Directory Server Administrator s Guide May 2005 ...
Page 612: ...Examples of LDAP URLs 612 Red Hat Directory Server Administrator s Guide May 2005 ...
Page 634: ...634 Red Hat Directory Server Administrator s Guide May 2005 ...