User.Identity.Name returning NT AUTHORITY\NETWORK SERVICE i want Domain\USER
Posted
by Jalvemo
on Stack Overflow
See other posts from Stack Overflow
or by Jalvemo
Published on 2010-06-09T13:15:32Z
Indexed on
2010/06/09
13:22 UTC
Read the original article
Hit count: 200
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:
© Stack Overflow or respective owner