内部访问时的 IIS Windows 身份验证 401.1

发布于 2024-09-13 05:13:47 字数 974 浏览 8 评论 0原文

我有一个 Intranet 站点,我们的客户需要从内部和互联网访问该站点。该站点的访问受到 Window 身份验证的限制。

问题是该站点在外部访问时可以正常工作,但在从本地网络内部访问时会失败并显示 401.1。为什么本地认证会失败?

详细信息

  • 该站点在 Windows Server 2003 和 IIS 6 上运行
  • 该站点禁用了匿名访问,并启用了 Windows 身份验证
  • 用户从类似仪表板.example.com 的 URL 访问该站点
  • 本地中有一个条目将dashboard.example.com 指向Windows 2003 服务器的DNS
  • 我可以将dashboard.example.com 名称解析到Windows 2003 服务器,而不会从本地网络出现问题。
  • 客户端活动目录实际上是 example.com 而不是推荐的 example.local 我不确定这是否是问题的根源。
  • 新信息:如果从计算机名称而不是 CNAME 访问,站点将在内部运行 http://ServerName

来自互联网

  1. 用户通过互联网在家中访问dashboard.example.com。
  2. 系统会提示他们输入用户名和密码
  3. ,然后进行身份验证并显示站点
    这是预期的行为

来自本地网络

  1. 用户从本地网络访问dashboard.example.com。
  2. 系统会提示他们输入用户名和密码 尝试
  3. 三次后会重新出现提示 站点
  4. 会显示 401.1 身份验证失败消息。

I have an intranet site that our customer needs to access both internally and from the internet. The site has access restricted with Window Authentication.

The problem is that the site works when access externally, but fails with a 401.1 when accessed from within the local network. Why would the authentication fail locally?

DETAILS

  • The site is running on Windows Server 2003 and IIS 6
  • The site has anonymous access disabled and Windows Authentication enabled
  • The users access the site from a url like dashboard.example.com
  • There is an entry in the local DNS that points dashboard.example.com to the Windows 2003 server
  • I can resolve the dashboard.example.com name to the Windows 2003 server without issue from the local network.
  • The clients active directory is actually example.com instead of the recommended example.local I'm not sure if this could be a source of problems or not.
  • New Information: The site will work internally if access from the machine name rather than the CNAME http://ServerName

FROM THE INTERNET

  1. User vists dashboard.example.com from home over the internet.
  2. They are prompted for their username and password
  3. They are then authenticated and the site is displayed
    This is the expected behavior

FROM THE LOCAL NETWORK

  1. User vists dashboard.example.com from the local network.
  2. They are prompted for their username and password
  3. The prompt reappears for three tries
  4. The site presents a 401.1 authentication failure message.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

女皇必胜 2024-09-20 05:13:50

我想我已经找到了这个问题的解决方案。事实证明,用户在用户名之前没有正确输入域前缀(即:example\joe)

误导我的第二个问题是直接在 Web 服务器上进行测试。显然,它们是一种环回检查,可防止在服务器本身上正确处理身份验证。有关详细信息,请参阅本文:http:// /msfarmer.blogspot.com/2009/03/4011-errors-with-reporting-services-and.html

I think I have found the solution to this problem. It turned out that the user was not properly entering the domain prefix before their username (ie: example\joe)

The second issue that misled me, was testing directly on the web server. Apparently their is a loopback check that prevents the authentication from processing properly when on the server itself. For more information see this article: http://msfarmer.blogspot.com/2009/03/4011-errors-with-reporting-services-and.html

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文