Ldif Update Statements - Red Hat DIRECTORY SERVER 7.1 - ADMINISTRATOR Administrator's Manual

Table of Contents

Advertisement

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
-
change_operation_identifier
list_of_attributes
-
A dash (-) must be used to denote the end of a change operation if subsequent
change operations are specified. For example, the following statement adds the
telephone number and manager attributes to the entry:
dn: cn=Lisa Jangles,ou=People,dc=example,dc=com
changetype: modify
add: telephonenumber
telephonenumber: (408) 555-2468
-
add: manager
manager: cn=Harry Cruise,ou=People,dc=example,dc=com
,
,
).
modify
modrdn
parameter, then an add operation (
-a
changetype: modrdn
ldapmodify
with the
ldapmodify
changetype: add
changetype: modify
, change operations are required that specify
has an RDN of
uid=ssarette
Chapter 2
LDIF Update Statements
should change your
parameter. If
-a
) is
parameter.
-a
), a change operation is
.
Creating Directory Entries
,
add
63

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

This manual is also suitable for:

Directory server 7.1

Table of Contents