简体   繁体   English

使用ADFS使用Java测试AD凭据

[英]Test AD credentials with java using ADFS

I would like to produce java code that could attempt to check the validity of a Domain username/password pair against ADFS 我想产生可以尝试针对ADFS检查域用户名/密码对的有效性的Java代码

I was given an URL to a federationmetadata.xml (apparently it is ADFS 4.0 - 2016). 为我提供了一个federationmetadata.xml的URL(显然它是ADFS 4.0-2016)。

I don't want SSO nor a fancy login page, I just want a service to test my login credentials. 我既不想使用SSO,也不想使用精美的登录页面,我只想要一种服务来测试我的登录凭据。

As a confessed ignorant on SAML and ADFS I'm having a hard time narrowing the propper possible apporach(es) 作为对SAML和ADFS的无知的认清者,我很难确定合适的方法

Thank you 谢谢

You can't. 你不能

ADFS is an IDP that provides SSO. ADFS是提供SSO的IDP。

So when you use ADFS, you get a login screen. 因此,当您使用ADFS时,会出现一个登录屏幕。

There is no way to hook in a third-party component as you require. 无法根据需要挂接第三方组件。

What you need to do is go straight to AD via LDAP as per this . 您需要做的就是按照此方法通过LDAP直接进入AD。

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

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