IIS 10 - Windows身份验证 - AuthenticationType"不可用"

时间:2016-02-08 17:35:22

标签: windows-authentication

我是一个网络应用,我试图使用Windows Auth。但是,无论我做什么,我都无法通过401。

的web.config

<configuration>
  <system.webServer>
    <security>
      <authentication>
        <anonymousAuthentication enabled="false" />
        <basicAuthentication enabled="false" />
        <windowsAuthentication enabled="true">
          <providers>
            <clear />
            <add value="NTLM" />
          </providers>
        </windowsAuthentication>
      </authentication>
      <authorization>
        <clear />
        <add accessType="Deny" users="?" />
        <add accessType="Allow" users="CABLE\mmulhe200" />
      </authorization>
    </security>
    <tracing>
      <traceFailedRequests>
        <add path="*">
          <traceAreas>
            <add provider="WWW Server" areas="Authentication,Security,StaticFile,CGI,Compression,Cache,RequestNotifications,Module,FastCGI,WebSocket" verbosity="Verbose" />
          </traceAreas>
          <failureDefinitions timeTaken="00:00:00" statusCodes="401.1" />
        </add>
      </traceFailedRequests>
    </tracing>
  </system.webServer>
</configuration>

IIS失败的请求跟踪输出(部分)

<failedRequest url="http://dev.windowsauthtest.com:80/"
               siteId="3"
               appPoolId="windowsAuthTest"
               processId="33204"
               verb="GET"
               authenticationType="NOT_AVAILABLE"               activityId="{80000727-0003-F400-B63F-84710C7967BB}"
               failureReason="STATUS_CODE"
               statusCode="401.1"
               triggerStatusCode="401.1"
               timeTaken="0"
               xmlns:freb="http://schemas.microsoft.com/win/2006/06/iis/freb"
               >

关注我的部分是

authenticationType="NOT_AVAILABLE"

我被提示输入我的凭据,然后输入我的NT用户名/密码,它会不断重新提示。

有什么想法吗?

0 个答案:

没有答案