Deleting A Specific Attribute Value Using Ldif - Netscape DIRECTORY SERVER 6.01 - ADMINISTRATOR Administrator's Manual

Table of Contents

Advertisement

LDIF Update Statements
For example, the following LDIF update statement deletes all instances of the
telephonenumber
appears in the entry:
dn: cn=Barney Fife,ou=People,dc=example,dc=com
changetype: modify
delete: telephonenumber
If you want to delete just a specific instance of the
you simply delete that specific attribute value. The following section describes how
to do this.

Deleting a Specific Attribute Value Using LDIF

Use
changetype:modify
from an entry.
For example, consider the following entry:
cn=Barney Fife,ou=People,dc=example,dc=com
objectClass: inetOrgPerson
cn: Barney Fife
sn: Fife
telephonenumber: 555-1212
telephonenumber: 555-5678
To delete the 555-1212 telephone number from this entry, use the following LDIF
update statement:
dn: cn=Barney Fife,ou=People,dc=example,dc=com
changetype: modify
delete: telephonenumber
telephonenumber: 555-1212
Barney's entry then becomes:
cn=Barney Fife,ou=People,dc=example,dc=com
objectClass: inetOrgPerson
cn: Barney Fife
sn: Fife
telephonenumber: 555-5678
66
Netscape Directory Server Administrator's Guide • January 2002
attribute from the entry, regardless of how many times it
with the
delete
telephonenumber
operation to delete an attribute value
attribute, then

Advertisement

Table of Contents
loading

This manual is also suitable for:

Directory server 6.01

Table of Contents