zoukankan      html  css  js  c++  java
  • IIS Express 域认证问题(https://stackoverflow.com/questions/4762538/iis-express-windows-authentication)

    option-1:

    edit My DocumentsIISExpressconfigapplicationhost.config file and enable windowsAuthentication, i.e:

    <system.webServer>
    ...
      <security>
    ...
        <authentication>
          <windowsAuthentication enabled="true" />
        </authentication>
    ...
      </security>
    ...
    </system.webServer>
    

    option-2:

    Unlock windowsAuthentication section in My DocumentsIISExpressconfigapplicationhost.config as follows

    <add name="WindowsAuthenticationModule" lockItem="false" />
    

    Alter override settings for the required authentication types to 'Allow'

    <sectionGroup name="security">
        ...
        <sectionGroup name="system.webServer">
            ...
            <sectionGroup name="authentication">
                <section name="anonymousAuthentication" overrideModeDefault="Allow" />
                ...
                <section name="windowsAuthentication" overrideModeDefault="Allow" />
        </sectionGroup>
    </sectionGroup>
    

    Add following in the application's web.config

    <?xml version="1.0" encoding="UTF-8"?>
    <configuration>
        <system.webServer>
          <security>
            <authentication>
              <windowsAuthentication enabled="true" />
            </authentication>
          </security>
        </system.webServer>
    </configuration>
    

    Below link may help: http://learn.iis.net/page.aspx/376/delegating-configuration-to-webconfig-files/

    After installing VS 2010 SP1 applying option 1 + 2 may be required to get windows authentication working. In addition, you may need to set anonymous authentication to false in IIS Express applicationhost.config:

    <authentication>
    
                <anonymousAuthentication enabled="false" userName="" />
    

    for VS2015, the IIS Express applicationhost config file may be located here:

    $(solutionDir).vsconfigapplicationhost.config
    

    and the <UseGlobalApplicationHostFile> option in the project file selects the default or solution-specific config file.

  • 相关阅读:
    二分查找 【数组的二分查找】
    二分答案 [TJOI2007]路标设置
    队测 逆序对 permut
    【线段树】 求和
    状压DP Sgu223 骑士
    状压DP Poj3311 Hie with the Pie
    状压DP入门 传球游戏之最小总代价
    状压DP 小W选书籍
    状压DP [Usaco2008 Nov]mixup2 混乱的奶牛
    __gcd()用法
  • 原文地址:https://www.cnblogs.com/Cavalry/p/8630223.html
Copyright © 2011-2022 走看看