zoukankan      html  css  js  c++  java
  • asp.net AD 域验证

    1、获取环境变量

    string strAuthUser = request.ServerVariables["AUTH_USER"]

    以上这行代码是用来获取当前用户的登录名

    2、IIS站点设置,除了windows验证启用,其余的全部设置禁用

    3、对WEB配置

      web.config中加入(针对本站点,建议采用)
      <httpRuntime maxRequestPathLength="360" maxQueryStringLength="1024" /> 

      也可以在(针对所有站点)

    C:WindowsSystem32inetsrvconfig里找到applicationHost.config文件,在,<system.webServer>路径下添加如下配置:添加如下配置:

    1. <security>  
    2.       <requestFiltering>  
    3.       <requestLimits maxQueryString="4080" />  
    4.       </requestFiltering>  
    5. </security>  
  • 相关阅读:
    多线程
    IO
    Collections工具类
    File类
    Map
    List与Set接口
    如何把数学作为一种工具
    包装类
    异常
    内部类
  • 原文地址:https://www.cnblogs.com/chengeng/p/5691249.html
Copyright © 2011-2022 走看看