ASP.NET模拟问题 [英] ASP.NET impersonation problem

查看:159
本文介绍了ASP.NET模拟问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图让我的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.

如果我使用...

    <identity impersonate="true" userName="mydomain\myusername" password="mypassword" />

它工作得很好。不过,如果我使用...

it works just fine. However, if I use...

    <identity impersonate="true" />

它不会拿起用户。我缺少一些code?或者这是一个IIS 7.5的配置问题?

It won't pick up the user. Am I missing some code? Or is this an IIS 7.5 configuration issue?

推荐答案

我贴了previous答案,但我觉得这个更好的适用

I posted a previous answer, but I think this one applies better

尝试,如果你正在使用一个特定的用户或选择通过。不是100%肯定,如果这能解决你的问题,只是想帮助!

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!

这篇关于ASP.NET模拟问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆