0

当我在 Liberty 配置文件中启用 ldapregistry 并将 appcentre 配置为使用“用户 S”时,登录时出现以下错误:

com.ibm.ws.security.registry.RegistryException: com.ibm.websphere.wim.model.Entity cannot be cast to com.ibm.websphere.wim.model.Group
at com.ibm.ws.wim.registry.WIMUserRegistry.getUniqueGroupIdsForUser(WIMUserRegistry.java:378)
at com.ibm.ws.security.credentials.wscred.internal.WSCredentialProvider.getUniqueGroupAccessIds(WSCredentialProvider.java:219)
at com.ibm.ws.security.credentials.wscred.internal.WSCredentialProvider.createUserWSCredential(WSCredentialProvider.java:164)
at com.ibm.ws.security.credentials.wscred.internal.WSCredentialProvider.setCredential(WSCredentialProvider.java:138)
at com.ibm.ws.security.credentials.wscred.internal.WSCredentialProvider.setCredential(WSCredentialProvider.java:96)
at com.ibm.ws.security.credentials.internal.CredentialsServiceImpl.setCredentials(CredentialsServiceImpl.java:57)

-Worklight Server V6.0 (WAS Liberty V8.5.5)

不确定这是 Worklight 还是 Liberty 问题,有其他人以前见过吗?

4

1 回答 1

0

AppCenter 身份验证机制完全基于 Liberty Profile J2EE 安全功能。因此,当您登录 AppCenter 时,仅涉及应用程序服务器安全层。查看异常似乎 server.xml 中的 lDAPRegistry 定义不正确。看起来对用户的搜索返回了一个组。所以你必须检查 ldapRegistry 属性,尤其是 userFilter、groupFilter、groupIdMap、userIdMap。

于 2013-09-30T10:09:52.890 回答