Managing Entries from the Command-Line
Chapter 2
Creating Directory Entries
57
For example:
dn: dc=example,dc=com
dn: ou=People, dc=example,dc=com
...
People subtree entries.
...
dn: ou=Group, dc=example,dc=com
...
Group subtree entries.
...
Creating a Root Entry from the Command-Line
You can use the
ldapmodify
command-line utility to create a new root entry in a
database. For example, you might add the new root entry as follows:
prompt> ldapmodify -a -D
bindDN
-w
password
The
ldapmodify
utility binds to the server and prepares it to add an entry.
You create the new root object as follows:
dn:
Suffix_Name
objectclass:
newobjectclass
The DN corresponds to the DN of the root or sub-suffix contained by the database.
The
newobjectclass
value depends upon the type of object class you are adding to the
database. You may need to specify additional mandatory attributes depending
upon the root object you add.
Adding Entries Using LDIF
You can use an LDIF file to add multiple entries or to import an entire database. To
add entries using an LDIF file and the Directory Server Console:
NOTE
You can use this method only if you have one database per suffix. If
you create a suffix that is stored in several databases, you must use
the
ldif2db
utility with the
-n
option to specify the database that
will hold the new entries. For information, refer to “Importing from
the Command-Line,” on page 153.
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 ...