Link to home
Start Free TrialLog in
Avatar of Larry Brister
Larry BristerFlag for United States of America

asked on

IIS user identity

On our Intranet I have a web site

When I have no web.config forms authentication

and

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.
SOLUTION
Avatar of Paul MacDonald
Paul MacDonald
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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.
Avatar of Larry Brister

ASKER

hey guys...I want to be able to see their domain name with either Environment.GetEnvironmentVariable("USERNAME") or with
User.Identity.Name
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
paulmacd
makes sense...how do I do that?

Add Domain Users to the folder?
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thanks