繁体   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