Invoke Oracle Directory Services Manager and connect to the Oracle Internet From the task selection bar, select Data Browser.

Managing Directory Entries 13-13 Modifying a User Entry by Using ldapmodify The following example changes the password for a user to a new value. As in the previous example, the data for this user entry is in the entry.ldif file. This file contains the following: dn: cn=audrey,c=us changetype: modify replace: userpassword userpassword: password Substitute the new password for password in the file. Issue this command to modify the file: ldapmodify -p 3060 -D cn=orcladmin -q -v -f entry.ldif where -v specifies verbose mode. Adding an Attribute Option by Using ldapmodify The following entry adds the Spanish equivalent of an entry for John. The data for this user entry is in the entry.ldif file. This file contains the following: dn: cn=john,c=us changetype: modify add: cn;lang-sp cn;lang-sp: Juan Issue this command to modify the file: ldapmodify -D cn=orcladmin -q -p 3060 -v -f entry.ldif Deleting an Attribute Option by Using ldapmodify The following example deletes the cn;lang-fr attribute option from the entry for John. As in the previous example, assume that the data for this user entry is in the entry.ldif file. This file contains the following: dn: cn=john, c=us changetype: modify delete: cn;lang-fr cn;lang-fr: Jean Issue this command to modify the file: ldapmodify -D cn=orcladmin -q -p 3060 -v -f entry.ldif Searching for Entries with Attribute Options by Using ldapsearch The following example retrieves entries with common name cn attributes that have an option specifying a language code attribute option. This particular example retrieves entries in which the common names are in French and begin with the letter R. ldapsearch -D cn=orcladmin -q -p 3060 -h myhost -b c=US -s sub cn;lang-fr=R Suppose that, in the entry for John, no value is set for the cn;lang-it language code attribute option. In this case, the following example fails: Note: When you add or modify an entry, the Oracle directory server does not verify the syntax of the attribute values in the entry. 13-14 Oracle Fusion Middleware Administrators Guide for Oracle Internet Directory ldapsearch -D cn=orcladmin -q -p 3060 -h myhost -b c=us \ -s sub cn;lang-it=Giovanni You can use the -X or -B options to ldapsearch to print binary values. See Also: Attribute Options on page 3-11 See Also: The ldapsearch command reference in Oracle Fusion Middleware Reference for Oracle Identity Management.