< allow users ="">题 [英] <allow users=""> question

查看:58
本文介绍了< allow users ="">题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以将一组用户添加到组中,并且只允许组访问网页,或者我是否需要将每个用户添加到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?

推荐答案

5月24日晚上9:52,Tom< T ... @ discussion.microsoft.comwrote:
On May 24, 9:52 pm, Tom <T...@discussions.microsoft.comwrote:

是不是可以将一堆用户添加到组中,并且只允许组访问网页,或者我是否需要将每个用户添加到web.config文件中?
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?



是的,确定


指定角色配置< denyand< allow>

元素时的属性,如下所示:


< 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

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


当我这样做时,我被提示输入ID和密码。我不想为每个用户弹出提示




" Alexey Smirnov"写道:
when I do that I''m prompted for an ID and pwd. I don''t want to the prompt to
pop up for each user.

"Alexey Smirnov" wrote:

5月24日晚上9:52,Tom< T ... @ discussion.microsoft.comwrote:
On May 24, 9:52 pm, Tom <T...@discussions.microsoft.comwrote:

是否可以将一组用户添加到组中,并且只允许组访问网页或者我是否需要将每个用户添加到web.config文件中?
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?



是的,确定


指定角色配置< denyand< allow>

元素时的属性,如下所示:


< 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


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


5月25日下午1点04分,Tom< T ... @ discussion.microsoft.comwrote:
On May 25, 1:04 pm, Tom <T...@discussions.microsoft.comwrote:

当我这样做时,我被提示输入ID和密码。我不想为每个用户弹出提示


when I do that I''m prompted for an ID and pwd. I don''t want to the prompt to
pop up for each user.



出了点问题。当您输入登录名和密码时,它是否工作?b / b

Something is wrong. When you typed the login and password, does it
work?


这篇关于&lt; allow users =&quot;&quot;&gt;题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆