问题描述
是否可以将一组用户添加到组中,并且只允许组访问网页,或者我是否需要将每个用户添加到web.config文件中?
或者还有其他办法吗?
我刚刚接手一个项目,而且大多数网站的用户定义为
可以访问该站点的web.config文件。现在用户来来去去,所以这个
配置文件总是被修改。我可以将用户添加到一个组
并且只允许该组,或者Active Directory / LDAP路径是否更好?
is it possible to add a bunch of users to group and only allow group to
access the web page or do I need to add each user to the web.config file?
Or is there another way to do this?
I just took over a project and most of the web sites have users defined in
the web.config file that can access the site. Now users come and go so this
config file is always being modified. Could I just add the users to a group
and only allow that group, or would a Active Directory /LDAP path work better?
推荐答案
是的,确定
指定角色配置< denyand< allow>
元素时的属性,如下所示:
< authorization>
< allow roles =" DomainName\WindowsGroup" />
< deny users =" DomainName\UserName" />
< / authorization>
http://msdn2.microsoft.com/en-us/library/acsd09b0.aspx
yes, sure
Specify the "roles" property when configuring <denyand <allow>
elements, as shown here:
<authorization>
<allow roles="DomainName\WindowsGroup" />
<deny users="DomainName\UserName" />
</authorization>
http://msdn2.microsoft.com/en-us/library/acsd09b0.aspx
http://msdn2.microsoft.com/en-us/library/ms998358.aspx
是的,确定
指定角色配置< denyand< allow>
元素时的属性,如下所示:
< authorization>
< allow roles =" DomainName\WindowsGroup" />
< deny users =" DomainName\UserName" />
< / authorization>
http://msdn2.microsoft.com/en-us/library/acsd09b0.aspx
yes, sure
Specify the "roles" property when configuring <denyand <allow>
elements, as shown here:
<authorization>
<allow roles="DomainName\WindowsGroup" />
<deny users="DomainName\UserName" />
</authorization>
http://msdn2.microsoft.com/en-us/library/acsd09b0.aspx
http://msdn2.microsoft.com/en-us/library/ms998358.aspx
出了点问题。当您输入登录名和密码时,它是否工作?b / b
Something is wrong. When you typed the login and password, does it
work?
这篇关于< allow users ="">题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!