Avatar of supportrp
supportrp
 asked on

Capture Windows userid with Anonymous accesss Enabled

Hi,
I need to capture the windows user id as part of my web application. But I have to set the Anonymous access Enabled on the IIS. Because we don't want to prompt the users for their login credentials. I would like to see who inserted/ updated the data. This is for an intranet application in C# .Net 3.5

I have tried the following,
Request.ServerVariables["LOGON_USER"] which returns Blank
Page.User.Identity.Name which returns Blank
System.Environment.UserName which returns 'NETWORK SERVICE'
 System.Security.Principal.WindowsIdentity.GetCurrent().Name which returns 'NETWORK SERVICE'

Thanks,
HT
.NET ProgrammingASP.NETMicrosoft SQL Server

Avatar of undefined
Last Comment
Wayne Michael

8/22/2022 - Mon
Wayne Michael

Browsers are usually "sand boxed". Can you use a trusted java app to access the client side data and send it?
ASKER CERTIFIED SOLUTION
Wayne Michael

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
rwheeler23