简体   繁体   中英

How to use SSO in a php written website with apache 2.4?

I am an intern in a company and have to make an intranet for the company. The difficulty for me is that i am very new to programming and don't really know how apache works. The users don't want to log into the intranet (put the login and password) everytime they come on the site, they want them to be logged in without doing that.

All my users use Windows 7 (or higher), and i will write the intranet in php-sql, using apache server 2.4.

I want to know how i can connect the users by SSO using NTLM (because the authentification is done with Active Driectory, i would like the user to be connected automatically with their Windows login and password)? What is the apache module for that and how do i proceed ? What Library do i use in PHP ?

I really am stuck at this point and can't seem to find a solution, please help me. I found some links that could help me but i don't understand what is the author saying.

Here are some links about the subjects :

Actually i saw that this kind of question was already asked here ( How can I implement single sign-on (SSO) using Microsoft AD for an internal PHP app? ) but I don't get the solution, I would like someone to explain a little bit in detail as i said before i am very new to programming.

First of all using Apache is not necessary and will complicate things somewhat to do what you are trying to do, if you can use IIS server on one of your Windows servers you will be laughing.

  1. Install PHP on the IIS server
  2. Create a new website in IIS
  3. Set the new websites access to Windows Authentication and disable anonomouse access.

What this will do is configure IIS to authenticate the users against Active Directory, if they are on a Windows machine on the local network, already authenticated to the local domain, and the intranet is defined by GPO as a intranet site then the users Windows login details will be automatically passed and can be accessed in PHP using the $_SERVER superglobal.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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