asp.net mvc 2 自定义服务帐户
我正在尝试使用自定义服务帐户部署 ASP.NET MVC 2 Silverlight 应用程序。我执行了以下操作:
1)创建了域用户帐户(myAppUser)。域控制器与我尝试部署应用程序的 Web 服务器不同。
2)在网络服务器上我运行以下命令: aspnet_iisreg -ga myDomain\myAppUser 将 myAppUser 分配给 IIS_WPG 组
3) 在 IIS 管理器中,我创建了应用程序池并将该池配置为在 myAppUser 帐户下运行。
4) 我使用 VS 2010 的发布方法部署了我的 Web 应用程序并进行了配置,以便它使用上述应用程序池。
5)在 web.config 中,
identity impersonate="false"
authentication mode="Windows"
当我请求默认页面时,它显示登录页面;我想要的是使用客户端计算机的凭据进行静默登录。我怎样才能做到这一点?
PS:实际上它并没有询问默认网络服务帐户下的凭据。当我将该帐户更改为 myAppUser 时,它开始询问凭据。
I'm trying to deploy ASP.NET MVC 2 Silverlight application with custom service account. I did the following:
1) Domain user account (myAppUser) was created. Domain controller is different from the web server to which I'm trying to deploy my app.
2) On the web server I run the following command:
aspnet_iisreg -ga myDomain\myAppUser
which assigned myAppUser to IIS_WPG group
3) In IIS manager I created application pool and configured that pool to run under myAppUser account.
4) I deployed my web app using VS 2010's publish method and configured so that it uses the above application pool.
5) in web.config I have
identity impersonate="false"
authentication mode="Windows"
When I requested the default page it displays login page; what I want is silent login using the credentials of the client machine. How can I do that?
PS: actually it didn't ask credentials under default Network Service Account. When I changed that account to myAppUser it started asking credentials.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
此链接可能对您有帮助:
http:// www.asp.net/mvc/tutorials/authentication-users-with-windows-authentication-vb
This link might be helpful for you:
http://www.asp.net/mvc/tutorials/authenticating-users-with-windows-authentication-vb