Connect to Local/On-premises Active Directory from PHP web application [closed]

耗尽温柔 提交于 2021-01-29 11:16:20

问题


Seeking for guidance on the subject as I'm really stuck on this, I am trying to connect to a microsoft server over a network to login into my system by providing my microsoft credentials.

Now, what I want is whenever I try to hit my php application url, it will redirect me to microsoft login page and automatically authenticates with the microsoft credentials entered during system login and at the same time redirect back to my php application with the same credentials. I am using simplesaml in this case.

I tried using local AD as an IDP and simplesaml as an SP. When I am hitting my application url, it is redirecting me to my local AD login page but auto-login is not initiating with my microsoft credentials. I have to enter the microsoft credentials again. Please help!!!


回答1:


The usual way to do this is to federate simplesamlphp with ADFS.

You will then get an ADFS login page and if you have "Integrated Windows Auth" enabled you will get SSO so you won't have to login.



来源:https://stackoverflow.com/questions/64137776/connect-to-local-on-premises-active-directory-from-php-web-application

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!