To delete only the entry, click the Delete icon. When the Delete dialog appears, From the task selection bar, select Data Browser.

13-12 Oracle Fusion Middleware Administrators Guide for Oracle Internet Directory Attribute Case in ldapsearch Output In the output from the ldapsearch command, the attribute names are shown in lower case if the attribute orclReqattrCasein the instance-specific configuration entry is 0. If orclReqattrCase is set to 1, the attribute names in the output are shown in the same case in which they were entered on the command line. Example: ldapsearch -h localhost -p 389 -b dc=oracle,dc=com -s base -L objectclass= DC If orclReqattrCase is 0 the output looks like this: dn: dc=oracle,dc=com dc: oracle If orclReqattrCase is 1, the output looks like this: dn: dc=oracle,dc=com DC: oracle If an attribute is specified more than once on the same command line, the attribute names in the output will match the case of the first attribute specification. Adding a User Entry by Using ldapadd The following example shows how to add an entry for an employee named John. Use ldapadd as follows: ldapadd -p port_number -h host -D cn=orcladmin -q -f entry.ldif where entry.ldif looks like this: dn: cn=john, c=us objectclass: top objectclass: person objectclass: organizationalPerson objectclass: inetOrgPerson cn: john cn;lang-fr:Jean cn;lang-en-us:John sn: Doe jpegPhoto: photojohn.jpg userpassword: password This file contains the cn, sn, jpegPhoto, and userpassword attributes. For the cn attribute, it specifies two options: cn;lang-fr, and cn;lang-en-us. These options return the common name in either French or American English. For the jpegPhoto attribute, it specifies the path and file name of the corresponding JPEG image you want to include as an entry attribute. Notes: ■ When you add or modify an entry, the Oracle directory server does not verify the syntax of the attribute values in the entry. ■ Do not insert a tilde ~ in a user name. 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.