Windows 与 Tomcat 的集成安全性

发布于 2024-12-26 03:41:40 字数 226 浏览 2 评论 0原文

我的环境

  • 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

自演自醉 2025-01-02 03:41:40

有多种方法可以将 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/

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文