Creating A Root Entry From The Command-Line; Adding Entries Using Ldif - Red Hat DIRECTORY SERVER 7.1 - ADMINISTRATOR Administrator's Manual

Table of Contents

Advertisement

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
database. For example, you might add the new root entry as follows:
prompt> ldapmodify -a -D bindDN -w password
The
utility binds to the server and prepares it to add an entry.
ldapmodify
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
value depends upon the type of object class you are adding to the
newobjectclass
database. You may need to specify additional mandatory attributes depending
upon the root object you add.
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
will hold the new entries. For information, refer to "Importing from
the Command-Line," on page 153.

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:
command-line utility to create a new root entry in a
utility with the
option to specify the database that
-n
Managing Entries from the Command-Line
Chapter 2
Creating Directory Entries
57

Advertisement

Table of Contents
loading
Need help?

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

Subscribe to Our Youtube Channel

This manual is also suitable for:

Directory server 7.1

Table of Contents