尝试在 URL 中使用 IP 地址时出现身份验证问题

发布于 2024-07-20 07:04:23 字数 518 浏览 4 评论 0原文

我正在使用 IIS 6.0 并设置了虚拟目录。 服务器架设在我公司的内网上。 在安全设置下,禁用匿名访问,启用集成 Windows 身份验证,启用 Windows 域服务器的摘要身份验证,并且领域具有我们的 AD 域地址。

当使用包含计算机名称(例如“http://myServerName/myWebSite”的 URL 访问站点时,此身份验证一切正常) /”。 但是,当我们使用这种格式“http://myIPAddress/myWebSite/”时,会弹出一个安全框。 如果在此框中输入凭据,则一切正常。 当 URL 中使用 IP 地址代替机器名称时,为什么会弹出此消息?

我们需要在 URL 中使用 IP 地址的原因是带有服务器名称的 URL 在我们的所有位置都无法识别。

I am using IIS 6.0 and have a virtual directory setup. The server is setup on my company's intranet. Under the security settings, anonymous access is disabled, integrated windows authentication is enabled, digest authentication for windows domain servers is enabled, and the realm has our AD domain address.

Everything works fine with this authentication when the the site is accessed with the URL including the machine name like, "http://myServerName/myWebSite/". However, when we use this format, "http://myIPAddress/myWebSite/", a security box pops up. If credentials are entered in this box, everything works properly. Why is this popping up when the IP Address is used in the URL in place of the machine name?

The reason we need to use the IP Address in the URL is that the URL with the server name is not recognized in all of our locations.

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

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

发布评论

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

评论(1

眼泪都笑了 2024-07-27 07:04:23

Microsoft 知识库文章Internet Explorer 可能会提示您输入密码
有答案,因为 IP 地址将被视为在 Internet 区域中:

Internet Explorer 必须将请求的 URL 视为位于 Intranet(本地)上。 如果请求的 URL 的计算机名称部分包含句点(例如 http://www.microsoft.comhttp://10.0.0.1),Internet Explorer 假定所请求的地址存在于 Internet 上,并且不传递任何凭据自动地。 不带句点的地址(例如 http://webserver)被视为位于 Intranet(本地)上; Internet Explorer 自动传递凭据。 唯一的例外是 Internet Explorer 中 Intranet 区域中包含的地址。

您可以设置 DNS,以便将服务器名称正确解析为 IP,或者按照上面知识库文章中提到的建议进行操作

The Microsoft KB article Internet Explorer May Prompt You for a Password
has the answer, as an IP address will be treated as in the Internet zone:

Internet Explorer must consider the requested URL to be on the intranet (local). If the computer name portion of the requested URL contains periods (such as http://www.microsoft.com and http://10.0.0.1), Internet Explorer assumes that the requested address exists on the Internet and does not pass any credentials automatically. Addresses without periods (such as http://webserver) are considered to be on the intranet (local); Internet Explorer passes credentials automatically. The only exception is addresses included in the Intranet zone in Internet Explorer.

You can set up DNS so as to resolve server name correctly to IP, or follow the suggestions mentioned in the Knowledge Base article above

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