2016-06-29 68 views

回答

0

定義內聯網是僅由一個組織內的用戶訪問。如果您需要讓網頁的所有授權用戶,並通過一定的組,其餘(例如http://site/secret/訪問只有瞭解role based authorization。例如,它可以像這樣

<system.webServer> 
    <security> 
     <authorization> 
      <allow users="*" /> 
      <deny users="?" /> 
     </authorization> 
    </security> 
</system.webServer> 
<location path="secret"> 
    <system.webServer> 
     <security> 
      <authorization> 
       <deny users="*" /> 
       <allow roles="DomainName\WindowsSecretGroup" /> 
      </authorization> 
     </security> 
    </system.webServer> 
</location> 
完成
相關問題