简体   繁体   English

允许所有活动目录中的用户使用Windows身份验证访问IIS上的网站

[英]Allow all users from active directory access website on IIS using windows authentication

I have an asp.net website hosted on IIS 8.5 which uses windows authentication to login. 我有一个托管在IIS 8.5上的asp.net网站,该网站使用Windows身份验证进行登录。

I have changed the authentication to windows as shown below: Windows authentication enabled 我将身份验证更改为Windows,如下所示: 启用Windows身份验证

I have also made the necessary changes in web.config file to allow all users from my organization access the website. 我还对web.config文件进行了必要的更改,以允许组织中的所有用户访问该网站。

<authentication mode="Windows" />
<authorization>      
  <allow users="*" />
  <deny users="?" />
</authorization>

The website works, however for some reason, only the users who's windows account has access to the server on which IIS is hosted can access the website. 该网站可以正常运行,但是由于某些原因,只有Windows帐户的用户有权访问承载IIS的服务器才能访问该网站。

The website has to be accessed by everyone in my organization. 该组织中的每个人都必须访问该网站。 I think there should be some setting where I have to add the AD domain or some other issue which I am not able to find. 我认为应该在某些地方添加AD域,或者找不到其他问题。

Please suggest, Thanks. 请提出建议,谢谢。

I had the same issue and just resolved it by changing the security configuration of the root folder of the website (when logged in the web server, right-click on the root folder eg wwwroot, select properties, security tab, then check the groups who has read permission). 我遇到了同样的问题,只是通过更改网站的根文件夹的安全性配置(在登录Web服务器时,右键单击根文件夹(例如wwwroot),选择属性,安全性选项卡,然后检查谁具有读取权限)。 Since in your case RDP users are allowed to access, in that list you probably already have an element like "hostname\\Administrators" or "hostname\\Remote Desktop Users". 由于在您的情况下,允许RDP用户访问,因此在该列表中,您可能已经有一个元素,例如“ hostname \\ Administrators”或“ hostname \\ Remote Desktop Users”。 In my case it was enough to add the "hostname\\Users" record to the list and giving it read, read & execute and list folder content permissions. 在我的情况下,将“主机名\\用户”记录添加到列表中并为其授予读取,读取和执行以及列出文件夹内容权限就足够了。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 允许匿名访问使用Windows身份验证的IIS站点中的目录 - Allow anonymous access to a directory in a IIS site that uses Windows Authentication IIS 5.1、Windows 身份验证、Active Directory - IIS 5.1, Windows Authentication, Active Directory 在内部网站上使用Active Directory身份验证 - Using Active Directory authentication on a internal website 将信息存储在活动目录中并使用Windows身份验证 - Storing information in active directory and using Windows Authentication 如何从 Active Directory 中检索所有用户? - How to retrieve all users from Active Directory? 从当前Active Directory返回所有用户 - Returning all the Users from the current Active Directory IIS web.config Active Directory Windows 身份验证使用角色适用于 AD 用户,但不适用于 AD 组或本地组 - IIS web.config Active Directory Windows Authentication using roles works for AD user but not AD group or Local Group 我可以允许匿名和活动目录用户浏览同一IIS 7.5站点吗? - Can I allow anonymous and active directory users to browse the same IIS 7.5 site? 使用Active Directory对面向WWW的网站中的用户进行身份验证 - Using Active Directory to authenticate users in a WWW facing website 禁用从IIS 7继承“允许所有用户”规则 - Disable inheriting the “Allow all users” rule from IIS 7
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM