尝试在 URL 中使用 IP 地址时出现身份验证问题
我正在使用 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Microsoft 知识库文章Internet Explorer 可能会提示您输入密码
有答案,因为 IP 地址将被视为在 Internet 区域中:
您可以设置 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:
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