简体   繁体   English

在域外使用Java进行NTLM身份验证

[英]NTLM authentication with Java outside Domain

My question is simple, the answer might be complicated though. 我的问题很简单,但是答案可能很复杂。

Can NTLM authentication be done outside a network from a tomcat server using Java code to do the authentication? 是否可以使用Java代码从Tomcat服务器在网络外部进行NTLM身份验证? If so, what sort of certificate/trust exchange is required? 如果是这样,则需要哪种证书/信任交换? What other requirements are there? 还有什么其他要求? Would it depend on the setup of the server needing to be authenticated against? 是否取决于需要进行身份验证的服务器的设置?

I can't find this exact question anywhere and am hoping for some general info on this, not a specific implementation, although that would be cool to see. 我在任何地方都找不到这个确切的问题,希望获得一些一般信息,而不是特定的实现,尽管这很酷。

Not aware of NTLM, but common approach is to use LDAP AD. 不了解NTLM,但是常见的方法是使用LDAP AD。

Spring security has a good support on LDAP authentication: http://docs.spring.io/spring-security/site/docs/3.0.x/reference/ldap.html Spring安全性对LDAP身份验证提供了很好的支持: http : //docs.spring.io/spring-security/site/docs/3.0.x/reference/ldap.html

You need to be familiar with your organization's AD structure. 您需要熟悉组织的AD结构。 Below is sample configuration from JIRA LDAP AD setting which roughly highlight configuration item required to setup LDAP authentication 以下是来自JIRA LDAP AD设置的示例配置,该配置大体突出显示了设置LDAP身份验证所需的配置项

在此处输入图片说明

I found that the answer to this is to use something like SAML or OAuth to authenticate outside the network/domain. 我发现此问题的答案是使用SAML或OAuth之类的东西在网络/域外部进行身份验证。 Working on implementing SAML. 正在实施SAML。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM