Ldif Update Statements - Netscape DIRECTORY SERVER 6.01 - ADMINISTRATOR Administrator's Manual

Table of Contents

Advertisement

LDIF Update Statements

-D "cn=Barbara Jensen,ou=Product Development,dc=example,dc=com"
Depending on the command-line utility you use, you should use either single or
double quotation marks for this purpose. Refer to your operating system
documentation for more information.
In addition, if you are using DNs that contain commas, you must escape the
commas with a backslash (\). For example:
-D "cn=Patricia Fuentes,ou=people,o=example.com Bolivia\,S.A."
To delete user Patricia Fuentes from the
would enter the following command:
ldapdelete -D "cn=Directory Manager,dc=example,dc=com" -w King-Pin
-h cyclops -p 845 "cn=Patricia Fuentes,ou=People,o=example.com
Bolivia\,S.A."
LDIF Update Statements
Use LDIF update statements to define how
directory. In general, LDIF update statements are a series of statements that:
Specify the distinguished name of the entry to be modified.
Specify a change type that defines how a specific entry is to be modified (
delete
Specify a series of attributes and their changed values.
A change type is required unless you use
you specify the
assumed. However, any other change type overrides the
If you specify a modify operation (
required that indicates how the entry should be changed.
If you specify
how the relative distinguished name (RDN) is to be modified. A distinguished
name's RDN is the left-most value in the DN. For example, the distinguished name
uid=ssarette,dc=example,dc=com
The general format of LDIF update statements is as follows:
dn: distinguished_name
changetype_identifier
change_operation_identifier
list_of_attributes
58
Netscape Directory Server Administrator's Guide • January 2002
,
,
).
modify
modrdn
parameter, then an add operation (
-a
changetype: modrdn
example.com Bolivia, S.A.
ldapmodify
with the
ldapmodify
changetype: add
changetype: modify
, change operations are required that specify
has an RDN of
uid=ssarette
tree, you
should change your
parameter. If
-a
) is
parameter.
-a
), a change operation is
.
,
add

Advertisement

Table of Contents
loading

This manual is also suitable for:

Directory server 6.01

Table of Contents