【发布时间】:2011-02-18 05:42:22
【问题描述】:
Integrated Windows Authentication 在 WebSphere (7) 中可用吗?
具体来说,如何获取通过 IE 访问 Web 应用程序的用户的用户名和组成员身份?
【问题讨论】:
标签: websphere windows-authentication
Integrated Windows Authentication 在 WebSphere (7) 中可用吗?
具体来说,如何获取通过 IE 访问 Web 应用程序的用户的用户名和组成员身份?
【问题讨论】:
标签: websphere windows-authentication
was7 支持 SPNEGO,请参阅 Creating a single sign-on for HTTP requests using SPNEGO Web authentication
如文档中所述:
WebSphere Application Server 安全注册表中的请求者身份必须与 SPNEGO Web 身份验证检索的身份相同。当 Microsoft Windows Active Directory 服务器是 WebSphere Application Server 中使用的轻量级目录访问协议 (LDAP) 服务器时,确实会发生相同的匹配。
这意味着HttpServletRequest.getRemoteUser() 将返回您的实际用户名。
您可以通过 jndi 执行 ldap 操作,请参阅 JNDI as an LDAP API 但是我更喜欢将组映射到角色以确定组成员身份。
【讨论】: