我在我们的intranet上有一个ASP.NET应用程序,它使用WindowsIdentity来识别用户:
WindowsIdentity wi = HttpContext.Current.User.Identity as WindowsIdentity;
if (wi == null || wi.Name == null)
{
noAccess("No WindowsIdentity");
return;
}
string username = wi.Name;
if (username.Contains("\\"))
username = username.Substring(username.LastIndexOf("\\") + 1);这在我们的Intranet上工作得很好。但是,当用户来自其他办公室(单独的网络,打开防火墙)时,他们会得到一个密码请求输入框。
为什么他们会得到密码对话框?
推荐的app用户识别方式是什么?我想避免使用密码,但windows身份。任何试图访问该应用程序的人都在受信任的网络中。
非常感谢你的帮助
编辑:其他用户在单独的网络上,访问由防火墙控制。IIS正在使用集成的Windows身份验证运行
瑞安
发布于 2010-03-18 16:49:45
与您的管理员交谈。可能是防火墙阻止了什么。您不应仅因WAN拆分而收到密码请求。如果每个人都在一个域上,就不会。
https://stackoverflow.com/questions/2468422
复制相似问题