You can customize how Instant Messenger displays contact and group names by changing the attribute used to display contact names. By default, the Instant Messenger uses the attribute cn to represent a user's display name. In your deployment, you may prefer to use uid or some other attribute instead of cn.
Contact names appear as First Name, Last Name. For example, Frank Smith, Mary Jones, and so on. When two end users have the same first name and last name, it is impossible to know which end user has to be added to the contact list. You can customize Instant Messenger to display more information in the search results for the user search, and to display additional information in the Contact tooltip to help distinguish between contacts. For example, you can display the phone number of the Contact when the mouse is placed over the Contact.
Open iim.conf.
See iim.conf File Syntax for instructions on locating and modifying iim.conf.
Specify the attribute you want to use to display usernames as the value for iim_ldap.userdisplay.
For example, to use the nickname attribute, set the iim_ldap.userdisplay attribute as follows:
iim_ldap.userdisplay=nickname
Save and close the file.
Open iim.conf.
See iim.conf File Syntax for instructions on locating and modifying iim.conf.
Specify the attribute you want to use to display usernames as the value for iim_ldap.groupdisplay.
For example, to use the uid attribute, set the iim_ldap.groupdisplay attribute as follows:
iim_ldap.groupdisplay=uid
Save and close the file.
Extract the files from imbrand.jar.
See Table 15–1 for default locations for imbrand.jar
Change to the following directory:
com/sun/im/client/
Open brand.properties.
Add the dialogs.searchresults.format attribute to the file.
Add the attributes you want to include in search results in the following format:
${attr:attribute-name}
Where attribute-name is the name of the LDAP attribute.
For example, to include the title attribute, add the following line:
dialogs.searchresults.format=(${attr:title})
Save your changes and close the file.
Repackage imbrand.jar.
Add the user attributes to iim.conf.
Specify the attributes as values for the iim_ldap.userattributes parameter. Separate multiple attributes with a comma, for example:
iim_ldap.userattributes=title,department,telephonenumber
See iim.conf File Syntax for instructions on locating and modifying iim.conf.
Extract the files from imbrand.jar.
See Table 15–1 for default locations for imbrand.jar
Change to the following directory:
com/sun/im/client/
Open brand.properties.
Add the contact.tooltip.format.html attribute to the file.
Specify the attribute you want to display in the tooltip as the value for contact.tooltip.format.html.
For example, if you want to display the telephone number and email address of the contact, you would enter:
contact.tooltip.format.html=mailto: ${attr:mail} tel: ${attr:telephonenumber}
For more information on customizing the contents of imbrand.jar file, see Customizing the Application (Java Web Start).
Save your changes and close the file.
Repackage imbrand.jar.