阅读背景:

设置为Forms身份验证时,可以在Intranet上验证/检索用户吗?

来源:互联网 

I have an asp.net MVC application that will be running on our company's intranet. I want to retrieve the logged on/windows identity of the user in lieu of a login page. Using Current.Request.LogonUserIdentity.Name and running on my local Visual Studio (ASP.Net Development Server), I am able to retrieve the user's domain/username. When published to my intranet webserver(IIS 7), I am only able to retrieve the username of the service my app pool is running under. Is it possible, using Forms authentication, for me to be able to retrieve the logged in user? Many of the discussions I have found suggest switching to Windows authentication...which is not an option for me at this point. My current authentication is forms:I have an asp.net MVC application that will be




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: