Sun Java System Instant Messaging 7.2 管理指南

Procedure自定义搜索结果中的用户名显示发式

  1. imbrand.jar 提取文件。

    有关 imbrand.jar 的默认位置,参见表 15–1

  2. 转到下列目录:

    com/sun/im/client/

  3. 打开 brand.properties

  4. dialogs.searchresults.format 属性添加到该文件。

  5. 按以下格式添加您想要包括在搜索结果中的属性:

    ${attr:attribute-name }

    其中,attribute-name 是 LDAP 属性的名称。

    例如,要包括 title 属性,可添加以下行:

    dialogs.searchresults.format=(${attr:title})

  6. 保存更改并关闭文件。

  7. 重新打包 imbrand.jar

  8. 添加用户属性到 iim.conf

    指定该属性作为 iim_ldap.userattributes 参数的值。使用逗号分隔多个属性,例如:

    iim_ldap.userattributes=title,department,telephonenumber

    有关查找和修改 iim.conf 的说明,参见iim.conf 文件语法