401.1访问指向网络共享的虚拟目录时出错 [英] 401.1 Error when accessing virtual directory pointing to network share

查看:206
本文介绍了401.1访问指向网络共享的虚拟目录时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

IIS5正在SERVER1上运行。

IIS5 is running on SERVER1.

IIS中的一个虚拟目录myfiles指向另一台计算机上的共享位置,// SERVER2 / myfilesshare

One of the virtual directories in IIS, myfiles, is pointing to "A shared location on another computer", //SERVER2/myfilesshare

当我尝试访问该页面时:
http: // SERVER1 / myfiles

When I try to access the page: http://SERVER1/myfiles

...我收到错误:

您无权查看此页面

HTTP 401.1 - 未经授权:登录失败

互联网信息服务

我已经三次检查了IIS中的连接为...设置。我用来访问共享的凭据是正确的 - 它们在Windows资源管理器中连接到共享时有效,但不能通过IIS虚拟目录。
我已经尝试在SERVER2的文件夹上向Everyone授予完全权限,但没有运气。

I have triple-checked the "Connect As..." settings in IIS. The credentials I'm using to access the share are correct-- they work when connect to the share in Windows Explorer, but not through the IIS virtual directory. I've tried granting full permission to Everyone on the folder in SERVER2, but no luck.

有什么想法吗?

推荐答案

这就是我解决问题的方法,可能对你有帮助。

This was how I solved my problem, might help you.

默认情况下,IIS使用本地用户使用匿名身份验证时,为虚拟目录调用 IUSR 它不使用应用程序标识,如果您使用 procmon ,这应该是显而易见的。

By default, IIS uses local user called IUSR for virtual directories when using anonymous authentication. It does not use application identity, which should be obvious, if you use procmon.

如何强制它使用应用程序标识?

How can you force it to use application identity?

简单,在IIS管理器下:

Easy, under IIS manager:

1)转到身份验证

2)编辑匿名身份验证

2) Edit "Anonymous authentication"

3)选择应用程序池标识

3) Select "Application pool identity"

4)重启IIS&它应该可以工作。

4) Restart IIS & it should work.

与PS完成的相同: Set-WebConfigurationProperty -filter /system.WebServer/security/authentication/AnonymousAuthentication -name username - 值

此链接包含优缺点: http://blogs.technet.com/b/tristank/archive/ 2011/12/22 / iusr-vs-application-pool-identity-why-use-both.aspx

这篇关于401.1访问指向网络共享的虚拟目录时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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