iis-7 - Windows 身份验证在 IIS 7.5 中失败

标签 iis-7 windows-server-2008 windows-authentication

我正在为我的公司构建一个简单的内部应用程序,它需要 Windows 身份验证以确保安全。禁用所有其他身份验证模式。我陷入了 Internet Explorer 提示输入凭据 3 次,然后失败并出现以下错误的情况:

Not Authorized

HTTP Error 401. The requested resource requires user authentication.



然后我创建了一个简单的网站来测试这一点。我在 IIS 中创建了一个新站点,将其放在自己的端口(:8111,随机选择)上,在其中放置一个静态“default.htm”文件,禁用匿名身份验证,然后启用 Windows 身份验证。其他一切都保留在默认设置中。分配端口号是因为我们在这台机器上有多个站点共享相同的 IP。

这里有几个场景:
  • 从 Web 服务器本身浏览到 http://本地主机 :8111/作品
    很好
  • 从另一台电脑浏览,到 http://服务器IP地址 :8111/
    工作正常
  • 从另一台电脑浏览,到 http://服务器名称 :8111/失败
    (请求凭据 3 次,然后给出 401 错误)

  • 到目前为止,我一直在网上搜索并试图找到一个没有运气的解决方案。要么我没有找到它,要么我不太了解我正在阅读的内容。任何帮助将不胜感激。

    最佳答案

    在与这个问题斗争了 2 天后,刚刚在同事的帮助下制定了解决方案。这是他写的:

    There are 2 providers for Windows Authentication (Negotiate and NTLM). When setting the Website Authentication to Windows Authentication, while Windows Authentication is highlighted, click on the Providers link on the right pane or IIS Manager and move NTLM to the top. By default Negotiate is on top which is why you are getting an authentication prompt.

    关于iis-7 - Windows 身份验证在 IIS 7.5 中失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12694162/

    相关文章:

    iis-7 - IIS 7 服务器中的日期时间格式问题

    c# - 使用 ServerManager 类设置网站端口

    .net - 从远程桌面中运行的应用程序,如何以编程方式获取已复制到客户端剪贴板的文件并将其保存到磁盘

    python - Web2py + MS SQL Server 2008 R2 + LDAP 身份验证 HelloWorld 应用程序?

    asp.net - Chrome 87 在针对 Windows IIS 10 的 CORS 中的 Windows 身份验证失败

    asp.net - 生产问题 - 禁用 ASP.NET 调试、限制对目录的访问

    iis - 如何在 IIS7 中配置每个文件夹和扩展的静态内容缓存?

    asp.net - .NET Ionic.Zip : Compressed or Uncompressed size, 或偏移量超过最大值

    python - pymssql windows 身份验证

    c# - System.Security.Principal.WindowsIdentity 和 WinForms 身份验证