ASP.NET 模拟问题
我正在尝试让 IIS 7.5 模拟通过浏览器访问站点的用户帐户。
如果我使用...
<identity impersonate="true" userName="mydomain\myusername" password="mypassword" />
它工作得很好。但是,如果我使用...
<identity impersonate="true" />
它不会接听用户。我缺少一些代码吗?或者这是 IIS 7.5 配置问题?
I am trying to get my IIS 7.5 to impersonate the account of the user accessing a site through a browser.
If I use...
<identity impersonate="true" userName="mydomain\myusername" password="mypassword" />
it works just fine. However, if I use...
<identity impersonate="true" />
It won't pick up the user. Am I missing some code? Or is this an IIS 7.5 configuration issue?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
我发布了之前的答案,但我认为这个答案更适用
尝试选择您是否使用特定用户或通过。不能 100% 确定这是否能解决您的问题,只是想提供帮助!
I posted a previous answer, but I think this one applies better
Try to select if you are using a specific user or pass through. Not 100% sure if this solves your problem, just trying to help!
在启用模拟时,检查您已启用的安全类型:
打开 IIS
转到您的站点,单击它
单击身份验证(带有锁图标的蓝色人)
确保您已启用 ASP.NET 模拟
应启用模拟
On the enabling impersonation, check what types of security you have enabled:
Open IIS
Go to your site, click on it
Click on authentication (a blue guy with a lock icon)
Make sure you have ASP.NET impersonation enabled
Impersonation should be enabled
您必须配置 IIS 以将安全令牌传递给 ASP.NET。请参阅此处
You have to configure IIS to pass the security token to ASP.NET. See here
您是否尝试打开 Windows 身份验证?
Did you try turning on Windows Authentication?