简体   繁体   English

同一域中多个用户的Windows身份验证

[英]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.

相关问题 .NET WebApi HttpClient未将Windows身份验证凭据发送到同一域 - .NET WebApi HttpClient not sending Windows Authentication credentials to same domain 为不在域中的用户测试Windows身份验证的ASP.NET应用程序 - Test ASP.NET application for Windows Authentication for user which is not in domain “域\\用户”的域身份验证失败 - Domain authentication failed for “domain\user” IE11 Cookie 身份验证问题 - 多个站点,同一域 - IE11 Cookie Authentication Issues - Multiple Sites, Same Domain 使用在域上具有Windows身份验证的IIS,我可以以发起对IIS的请求的域用户身份启动进程吗? - With IIS with Windows authentication on domain, can I start a process as the domain user who initiated request to IIS? 域上的.NET应用程序中的Windows身份验证 - Windows Authentication in .NET application on domain 在公共域上自动进行Windows身份验证? - Automatic Windows Authentication on public domain? 网页上的 Windows 身份验证 - 无用户 - Windows authentication on webpage - No user 使用身份验证窗口更改用户 - Change user with authentication windows 在多个客户端/用户上具有相同身份验证标头的c#Httpclient单例 - c# Httpclient singleton with same authentication header on multiple client/user
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM