簡體   English   中英

同一域中多個用戶的Windows身份驗證

[英]windows authentication for multiple user in same domain

我希望所有來自同一域名的用戶:XYZ訪問下面的我的應用程序是我的代碼。

<system.web>
    <compilation debug="true" targetFramework="4.0" />
    <authentication mode="Windows"  />
    <authorization>
        <allow users="XYZ\HOW TO GRANT ACCESS TO ALL THE USERS HERE?" />
        <deny users="*" />
    </authorization>
    <identity impersonate="true" />
</system.web>

您可以使用域用戶

<authorization>
  <allow roles="XYZ\Domain Users"/>
</authorization>

試試這個,並禁用匿名身份驗證,只啟用集成Windows身份驗證。

`<authentication mode="Windows" />
   <authorization>
   <allow roles="XYZ\Domain Users" />
   <deny users="*" />
 </authorization>`

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM