HP OSMS Blueprint: Directory Services on HP ProLiant Servers with SLES10

Figure 3 Searching for an Entry
Modifying an Entry in the Directory
1. Use a text editor to create an LDIF file, saved as /tmp/modify.ldif, with the following
content:
dn: uid=tomy,dc=osm,dc=example,dc=com
changetype: modify
replace: mail
mail: newmail@example.com
-
add: title
title: added title
-
delete: carLicense
2. Enter the following command:
# /opt/symas/bin/ldapmodify -x -D "cn=Manager,dc=example,dc=com" \
-W -f /tmp/modify.ldif
Figure 4 Modifying an Entry
3. To verify the modification, use the ldapsearch command by entering the following:
# /opt/symas/bin/ldapsearch -x -D "cn=Manager,dc=example,dc=com" \
-W "cn=tom yan"
Deleting an Entry from the Directory
1. To delete one or more entries in the directory, run the ldapdelete command as follows:
# /opt/symas/bin/ldapdelete -x -D "cn=Manager,dc=example,dc=com" \
14