Windows 与 Tomcat 的集成安全性
我的环境
- Tomcat 在 Windows 服务器中作为服务运行,
- 该服务配置有域帐户,它是 Active Directory 帐户。
现在,在 Spring 控制器中,我需要访问一个站点,该站点配置了集成安全性。 所以我想要的是使用运行 tomcat 帐户的相同凭据访问该站点。所以我确信我需要访问此凭据并将其传递给 http 客户端。
谢谢。
I'm have the next scenario on my enviroment
- Tomcat running as services in Windows server
- The service is configured with a Domain Account, it is an Active Directory Account.
Now in a Spring Controller I need to acces to a site, this site is configured with Integrated Security.
So what I want is to access to this site using the same credentials that is running the tomcat account. So I'm beleave thath I need to access to this credentials and pass it to a http client.
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
有多种方法可以将 Java 应用程序集成到 Active Directory/Windows 身份验证系统中:
我首先了解 Kerberos 和 NTLM 身份验证系统(以及适用于您的环境的系统)并阅读文档:http://docs.oracle.com/javase/6/docs/technotes/guides/net/http-auth.html
鉴于您已经在使用 Spring,我强烈考虑使用 Spring安全性,具有 NTLM 支持:http://blog.mediasoft.be/ntlm-with-spring-security-20/
There's a number of ways you can integrate a Java application into an Active Directory / Windows Authentication system:
I would start by understanding the Kerberos and NTLM authentication systems (and which apply to your environment) and reading up on the documentation: http://docs.oracle.com/javase/6/docs/technotes/guides/net/http-auth.html
Given you are using Spring already, I would strongly consider using Spring Security, which has NTLM support: http://blog.mediasoft.be/ntlm-with-spring-security-20/