Providing Input From The Command Line - Netscape DIRECTORY SERVER 6.02 - ADMINISTRATOR Administrator's Manual

Table of Contents

Advertisement

Adding and Modifying Entries Using ldapmodify
Deleting Entries Using ldapdelete
Using Special Characters
You cannot modify your directory unless the appropriate access
NOTE
control rules have been set. For information on creating access
control rules for your directory, see Chapter 6, "Managing Access
Control."

Providing Input From the Command Line

When you provide input to the
the command line, you must use LDIF statements. For detailed information on
LDIF statements, refer to "LDIF Update Statements," on page 58.
The
and
ldapmodify
exactly the same way as if they were read from a file. When you finish providing
input, enter the character that your shell recognizes as the end of file (EOF) escape
sequence. The utility then begins operations based on the input you supplied.
Typically, the EOF escape sequence is one of the following, depending upon the
type of machine you use:
UNIX—Almost always control-D (^D).
Windows—Usually control-Z followed by a carriage return (^Z<return>)
For example, suppose you want to input some LDIF update statements to
. Then, on a UNIX system, you would do the following:
ldapmodify
prompt> ldapmodify -D bindDN -w password -h hostname
> dn: cn=Barry Nixon, ou=people, dc=example,dc=com
> changetype: modify
> delete: telephonenumber
> -
> add: manager
> manager: cn=Harry Cruise, ou=people, dc=example,dc=com
> ^D
prompt>
When you add an entry from the command-line or from LDIF, make sure that an
entry representing a subtree is created before new entries are created under that
branch. For example, if you want to place an entry in a People subtree, then create
entry representing that subtree before creating entries within the subtree.
ldapmodify
utilities read the statements that you enter in
ldapdelete
Managing Entries From the Command Line
and
utilities directly from
ldapdelete
Chapter 2
Creating Directory Entries
51

Advertisement

Table of Contents
loading

This manual is also suitable for:

Directory server 6.02

Table of Contents