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

-W "uid=tomy,dc=osm,dc=example,dc=com"
2. To verify the deletion, enter the following command:
# /opt/symas/bin/ldapsearch -x -D "cn=Manager,dc=example,dc=com" \
-W "uid=tomy"
Modifying the Relative Distinguished Name for an Entry in the Directory
1. To modify the Relative Distinguished Name (RDN) for an entry, run the ldapmodrdn
command as follows:
# /opt/symas/bin/ldapmodrdn -x -D "cn=Manager,dc=example,dc=com" \
-W "uid=tomy,dc=osm,dc=example,dc=com" "uid=tomy-modified"
Figure 5 Modifying an RDN for Entry
2. 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"
Performing Backups and Recovery with Berkeley DB
Performing a Hot Backup and Reloading the Berkeley DB
Hot backups offer a convenient way to back up data when the CDS server is running. Performing
a hot backup does not require downtime and it does not impact the CDS server. Use the slapcat
command, which is provided with the CDS distributions, to perform a hot backup. The following
steps explain how to perform a hot backup and, when the Berkeley DB is damaged, reload data.
CAUTION: If data is being altered or updated when you perform a hot backup, a mismatch
can occur between the backup file and CDS server's final data. There is a risk of inconsistent data
when performing a hot backup.
1. To view the data in the Berkeley Database, enter the following command:
# /opt/symas/bin/slapcat
2. To perform a hot backup of the Berkeley Database to an LDIF file, while the CDS server is
running enter the following command:
# /opt/symas/bin/slapcat l backup.ldif
3. To view the file, enter the following command:
# vi backup.ldif
4. When the CDS server has a problem or the data file is damaged, the data can be reloaded
from the LDIF file. To mimic a damaged data file for this example, manually delete the data
using the following command:
# /opt/symas/bin/ldapdelete -x -D 'cn=Manager,dc=example,dc=com' \
-w secret -r dc=example,dc=com
5. Verify the data has been deleted using the slapcat command. The query result should be
empty.
# /opt/symas/bin/slapcat
Performing Backups and Recovery with Berkeley DB 15