从 imbrand.jar 提取文件。
有关 imbrand.jar 的默认位置,参见表 15–1
转到下列目录:
com/sun/im/client/
打开 brand.properties。
将 dialogs.searchresults.format 属性添加到该文件。
按以下格式添加您想要包括在搜索结果中的属性:
${attr:attribute-name }
其中,attribute-name 是 LDAP 属性的名称。
例如,要包括 title 属性,可添加以下行:
dialogs.searchresults.format=(${attr:title})
保存更改并关闭文件。
重新打包 imbrand.jar。
添加用户属性到 iim.conf。
指定该属性作为 iim_ldap.userattributes 参数的值。使用逗号分隔多个属性,例如:
iim_ldap.userattributes=title,department,telephonenumber
有关查找和修改 iim.conf 的说明,参见iim.conf 文件语法。