简体   繁体   English

模仿IIs6

[英]Impersonate in IIs6

We having a problem with our web server that it denies the access to shared folders, after some investigation I have notice that the 'WindowsIdentity.GetCurrent().Name' returning the client side user name 'my User Name' instead of 'Network service'. 我们的网络服务器出现问题,它拒绝访问共享文件夹,经过一些调查,我注意到“ WindowsIdentity.GetCurrent()。Name”返回客户端用户名“ my User Name”而不是“ Network service” '。

Now if I add following code into web config, the app works currently and uses 'Network service'. 现在,如果我将以下代码添加到Web配置中,则该应用程序当前可以运行并使用“网络服务”。

<identity impersonate="false" />

My question is that, is there anywhere in the IIS6 that I can use/set to force all applications to using the 'Network service' user? 我的问题是,IIS6中是否可以使用/设置任何地方来强制所有应用程序使用“网络服务”用户?

thanks in advance for the help, 先谢谢您的帮助,

在框上的machine.config中设置impersonate="false 。默认情况下,machine.config没有启用impersonate功能。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM