![Netscape NETSCAPE DIRECTORY SERVER 6.1 - ADMINISTRATOR Administrator'S Manual Download Page 55](http://html1.mh-extra.com/html/netscape/netscape-directory-server-6-1-administrator/netscape-directory-server-6-1-administrator_administrators-manual_1674675055.webp)
Managing Entries From the Command Line
Chapter
2
Creating Directory Entries
55
•
Adding and Modifying Entries Using ldapmodify
•
Deleting Entries Using ldapdelete
•
Using Special Characters
Providing Input From the Command Line
When you provide input to the
ldapmodify
and
ldapdelete
utilities directly from
the command line, you must use LDIF statements. For detailed information on
LDIF statements, refer to “LDIF Update Statements,” on page 62.
The
ldapmodify
and
ldapdelete
utilities read the statements that you enter in
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
. Then, on a UNIX system, you would do the following:
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.
NOTE
You cannot modify your directory unless the appropriate access
control rules have been set. For information on creating access
control rules for your directory, see Chapter 6, “Managing Access
Control.”
Summary of Contents for NETSCAPE DIRECTORY SERVER 6.1 - ADMINISTRATOR
Page 1: ...Administrator s Guide Netscape Directory Server Version6 1 August 2002...
Page 20: ...20 Netscape Directory Server Administrator s Guide August 2002...
Page 24: ...24 Netscape Directory Server Administrator s Guide August 2002...
Page 142: ...Using Referrals 142 Netscape Directory Server Administrator s Guide August 2002...
Page 440: ...Miscellaneous Tuning Tips 440 Netscape Directory Server Administrator s Guide August 2002...
Page 442: ...442 Netscape Directory Server Administrator s Guide August 2002...
Page 478: ...PTA Plug In Syntax Examples 478 Netscape Directory Server Administrator s Guide August 2002...
Page 498: ...498 Netscape Directory Server Administrator s Guide August 2002...
Page 538: ...Examples of LDAP URLs 538 Netscape Directory Server Administrator s Guide August 2002...