[Last Call] Learn how to a build a cloud-first strategyRegister Now


IIS user identity

Posted on 2012-08-10
Medium Priority
Last Modified: 2012-08-10
On our Intranet I have a web site

When I have no web.config forms authentication


Set IIS security to Window and turn anonymous access OFF

Then for myself (an Administrator)  I can see User.Identity.Name

If I turn anonymous access on User.Identity.Name goes away

I need it on, but when I do, I can access...but the end users in our network get a popup window for access.

What is the correct way to do this?
Let them enter their domain/username and password and save?

Add something to their login?

Uncharted territory for me.
Question by:lrbrister
  • 3
  • 3
LVL 34

Assisted Solution

by:Paul MacDonald
Paul MacDonald earned 2000 total points
ID: 38281986
Users on the network should authenticate with their domain credentials.

If this isn't a domain, they'll have to provide appropriate credentials valid on the web server.

Regardless, if the person athenticating doesn't have NTFS permissions to the pages/folders, they won't be able to see anything.
LVL 41

Expert Comment

by:Kyle Abrahams
ID: 38282002
All you should need to do is grant permissions on the Iur_Account (or whatever you're using for your app pool_identity) to the directory where the files are located.  Then anyone should eb able to access it via anonymous access.

Author Comment

ID: 38282019
hey guys...I want to be able to see their domain name with either Environment.GetEnvironmentVariable("USERNAME") or with
Creating Active Directory Users from a Text File

If your organization has a need to mass-create AD user accounts, watch this video to see how its done without the need for scripting or other unnecessary complexities.

LVL 34

Accepted Solution

Paul MacDonald earned 2000 total points
ID: 38282044
Then they have to authenticate using Windows Authentication.  If the other users can't access the site when you have Windows Authentication turned on, you don't have permissions set properly on the files for your web site.

Author Comment

ID: 38282105
makes sense...how do I do that?

Add Domain Users to the folder?
LVL 34

Assisted Solution

by:Paul MacDonald
Paul MacDonald earned 2000 total points
ID: 38282118
That should work, if you want all Domain Users to have access.

Author Closing Comment

ID: 38282156

Featured Post

Simplify Active Directory Administration

Administration of Active Directory does not have to be hard.  Too often what should be a simple task is made more difficult than it needs to be.The solution?  Hyena from SystemTools Software.  With ease-of-use as well as powerful importing and bulk updating capabilities.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

OfficeMate Freezes on login or does not load after login credentials are input.
Measuring Server's processing rate with a simple powershell command. The differences in processing rate also was recorded in different use-cases, when a server in free and busy states.
This tutorial will walk an individual through locating and launching the BEUtility application to properly change the service account username and\or password in situation where it may be necessary or where the password has been inadvertently change…
This tutorial will show how to configure a new Backup Exec 2012 server and move an existing database to that server with the use of the BEUtility. Install Backup Exec 2012 on the new server and apply all of the latest hotfixes and service packs. The…
Suggested Courses

829 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