Solved

IIS / PHP Intranet Setup auth_user

Posted on 2010-11-22
4
1,368 Views
Last Modified: 2012-05-10
I am trying to setup an intranet for our employees using IIS 6 and php5.  My problem is capturing user information for single sign on

In IIS, I have "Integrated Windows Authentication" checked for the site and "enable anonymous access checked.  The phpinfo.php shows that AUTH_USER = value instead of showing me the user name.

If I go back into IIS and disable Anonymous Access, phpinfo.php shows AUTH_USER =Domain\username  which is what I want.  The problem is that everyone on our network gets prompted to log in using  domain\uername.  I do not want them to get promoted if they are on our network.

Basically, if they are logged into our domain, they should be able to automatically be able to see the website AND allow php to grab the auth_user.

Now sure what I am doing wrong here.  I need some pretty simple steps as I'm not a IIS guy, but Linux is not an option here.  Any ideas?  
0
Comment
Question by:plysanderson
  • 2
4 Comments
 
LVL 40

Accepted Solution

by:
RQuadling earned 125 total points
ID: 34193026
From what I can tell, "Enable Anonymous Access" must NOT be checked and "Integrated Windows Authentication" should be checked.

http://en.wikipedia.org/wiki/Integrated_Windows_Authentication#Overview offers ...

"Integrated Windows Authentication uses the security features of Windows clients and servers. Unlike Basic or Digest authentication, initially, it does not prompt users for a user name and password. The current Windows user information on the client computer is supplied by the browser through a cryptographic exchange involving hashing with the Web server. If the authentication exchange initially fails to identify the user, the browser will prompt the user for a Windows user account user name and password."
0
 
LVL 40

Assisted Solution

by:RQuadling
RQuadling earned 125 total points
ID: 34193044
OOI. I'm using IIS7, so I don't know what IIS6 has in this regard.

If you have application pools, you may want to set impersonation to true so that the authenticated user is passed through.

Some relevant reading...

http://msdn.microsoft.com/en-us/library/134ec8tc.aspx

0
 
LVL 16

Expert Comment

by:CWS (haripriya)
ID: 36110506
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Things That Drive Us Nuts Have you noticed the use of the reCaptcha feature at EE and other web sites?  It wants you to read and retype something that looks like this.Insanity!  It's not EE's fault - that's just the way reCaptcha works.  But it is …
If you don't have the right permissions set for your WordPress location in IIS, you won't be able to perform automatic updates. Here's how to fix the problem.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now