[英]windows authentication for multiple user in same domain
I want all the users from same domain name: XYZ to access my application below is my code. 我希望所有来自同一域名的用户: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>
You can use the Domain Users 您可以使用域用户
<authorization>
<allow roles="XYZ\Domain Users"/>
</authorization>
Try this one and also disable Anonymous Authentication and only enable Integrated Windows Auth. 试试这个,并禁用匿名身份验证,只启用集成Windows身份验证。
`<authentication mode="Windows" />
<authorization>
<allow roles="XYZ\Domain Users" />
<deny users="*" />
</authorization>`
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.