开发者

IIS7 application pool identity problem

开发者 https://www.devze.com 2023-01-17 16:08 出处:网络
i\'m having a problem with an MVC2 app im trying to deploy. my app uses the windowsidentity.current.user.name for a number of data calls.However, when i\'ve deployed this to iis7 windows server 2008,

i'm having a problem with an MVC2 app im trying to deploy. my app uses the windowsidentity.current.user.name for a number of data calls. However, when i've deployed this to iis7 windows server 2008, the username and domain its passing from windowsidentity is the application pool identity.

i'm new to iis7 and never had this problem before in earlier versions so i as开发者_StackOverflow中文版sume its something i've configured wrong. can some assist please?

Ideally i need the application to obtain the current users windowsidentity not the application pool.

thanks


What were you expecting it to be?

If you want it to be the name of the domain user accessing the page, you could either enable impersonation, or access the name through HttpContext.Current.User.Name.

0

精彩评论

暂无评论...
验证码 换一张
取 消