User.Identity.Name returning NT AUTHORITY\NETWORK SERVICE i want Domain\USER
- by Jalvemo
in my asp.net MVC project
i have an database connection with connectionstring:
Data Source=.;Initial Catalog=dbname;Integrated Security=True
All users can execute Stored Procedures on that connection and i want to log those users.
so after each execution I store "User.Identity.Name" to another database.
This work great on my development machine but after deployment, to access the site i have to go through a VPN-connention and then remote desktop to the same server that the IIS is running on and use a web-browser there. Then i get User.Identity.Name: "NT AUTHORITY\NETWORK SERVICE". i would expect it to be the credentials i entered in remote desktop that have access to the database.
any idea how i can get this to work?
iis6 authentication: "windows authentication: enabled"
web.config: