可以定制属性配置来使用除缺省属性以外的 LDAP 属性。
例如,缺省情况下,virtual member manager 使用 LDAP 属性 mail 作为用户的电子邮件地址。要为外部邮件地址使用其他属性,必须根据需求配置属性映射。
缺省属性映射的名称与 virtual member manager 中定义的缺省属性名称相同,如以下示例中所示:
<config:attributes name=“mail" propertyName="mail">
<config:entityTypes>PersonAccount</config:entityTypes>
</config:attributes>
可以将其修改为使用其他 LDAP 属性,如以下示例中的斜体内容所示。
<config:attributes name="attribute_in_ldap" propertyName="mail">
<config:entityTypes>PersonAccount</config:entityTypes>
</config:attributes>
使用 addIdMgrLDAPAttr wsadmin 命令可将 LDAP 属性映射到 virtual member manager 属性。有关更多信息,请参阅 WebSphere Application Server 信息中心的 AdminTask 对象的 IdMgrRepositoryConfig 命令组。