I have been tasked with making some internal software (as you can probably tell from the section I'm posting in, it's PHP based). I have been asked to make it so the user is automatically logged in and doesn't need to have another password for another piece of software. The trouble is, I'm not sure if this would be possible in PHP.
The software is purely internal and would have absolutely no outside access.
I know that all the end users would be on Windows computers and all the usernames are in the same format so all I would need is to somehow be able to check what user is logged in.
The idea is that an employee (we'll call him John Doe) comes in and logs on to his computer. The idea is that he can just open his web browser and go to the internal URL and it would see that the current Windows user accessing the page is "john.doe" (or possibly "DOMAIN\john.doe") so it will automatically log him in and give him access to what he is allowed/needs access to.
So basically my question is this: Is it possible to check the Windows username of a visitor to a page?
I'm not sure if I've described it well enough (or overdescribed it) so let me know if you want clarification.