Can a PHP intranet share Windows logins?

前端 未结 3 1489
一生所求
一生所求 2020-12-28 11:28

I have created some PHP-based intranet resources that require users to log in. The users create their own logins, and I verify that they are logged in using a cookie.

<
3条回答
  •  心在旅途
    2020-12-28 12:34

    What you are looking for is NTLM authentication against the PHP website, which is perfectly doable but seems there is no single way in PHP to do it.

    Have a look at http://siphon9.net/loune/2007/10/simple-lightweight-ntlm-in-php/

    You also need to add the sites to your trusted sites in IE (or the equivalent in whichever browser you are using) and in the settings for trusted sites, turn on 'send current username and password'.

    Its not a horrible security hole because the credentials are not sent en clair over the wire, and the end user has specifically told the browser to send credentials to the website in question.

提交回复
热议问题