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

Table of Contents

Advertisement

Managing Entries From the Command Line

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 62.
The
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
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.
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.
...
56
Netscape Directory Server Administrator's Guide • December 2003
ldapmodify
and
ldapdelete
. Then, on a UNIX system, you would do the following:
and
ldapdelete
utilities read the statements that you enter in
utilities directly from

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the NETSCAPE DIRECTORY SERVER 6.2 - 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 6.2

Table of Contents