HP-UX Directory Server Administrator Guide HP-UX Directory Server Version 8.1 (5900-3098, May 2013)

Table 12 ldapdelete options used for deleting entries
DescriptionOption name
Specifies the distinguished name with which to authenticate to the server. The value must be a DN
recognized by the Directory Server, and it must also have the authority to modify the entries.
-D
Specifies the password associated with the distinguished name specified in the -D option.-w
Specifies the name of the host on which the server is running.-h
Specifies the port number that the server uses.-p
For information on the ldapdelete options, see the HP-UX Directory Server configuration,
command, and file reference.
3.2.6 Using special characters
When using the Directory Server command line client tools, you may need to specify values that
contain characters that have special meaning to the command line interpreter, such as space ( ),
asterisk (*), or backslash (\). When this situation occurs, enclose the value in quotation marks
(""). For example:
-D "cn=Barbara Jensen,ou=Product Development,dc=example,dc=com"
Depending on the command line utility, use either single or double quotation marks; see your
operating system documentation for more information.
Additionally, if a DN contains 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 example.com Bolivia, S.A. tree, use the following
command:
ldapdelete -D "cn=Directory Manager" -w secret -h example.com -p 389 "cn=Patricia
Fuentes,ou=People,o=example.com Bolivia\,S.A."
3.3 Tracking Modifications to Directory Entries
3.3.1 Tracking modifications to directory entries through Update Sequence Numbers
The USN plug-in when enabled, keeps track of every write operation like add, modify, modrdn
and delete operations performed on an entry. The USN plug-in assigns a sequential number called
Update Sequence Number (USN) to the entry to track the changes.
In the following example, operational attribute entryusn shows the change number for the last
modification performed on the entry:
dn: uid=jdoe, ou=people,dc=example,dc=com
objectclass: top
objectclass: person
objectclass: organizationalperson
objectclass: inetOrgPerson
objectclass: referral
cn: john doe
sn: doe
uid: jdoe
entryusn: 2022
The entryusn attribute is one of the operational attributes. In the search operation, the entryusn
attribute value pair is returned only when entryusn is specified in the attribute list.
ldapsearch -b "dc=example,dc=com" "(objectclass=*)" entryusn
3.3 Tracking Modifications to Directory Entries 115