Re: how to use <authorization>
- From: "Shourie" <shourie.varma@xxxxxxxxx>
- Date: 21 Nov 2006 04:18:36 -0800
Dominick Baier wrote:
hi -
- have you logged off/on after you added your account to the group?
- try without the NE
dominick
Hi
I have an asp.net application. I would like to allow users in a group
on my computer (I also have the IIS on the same computer) to enter the
application. So I created a new group named MyGroup. And I added these
rows in the config file:
<authentication mode="Windows" />
<authorization>
<allow roles="NE\MyGroup" />
<deny users="*" />
</authorization>
This doesnt work, why? If I allow the BUILTIN/Administrators I can
enter the application.
Thanks
Julia
Hi Julia,
Please ensure that you followed these steps..
Step1:Create a Group in server computer
Go to start menu>>settings>>Control panel>>administrative
tools>>ComputerManagement
select Local Users and Groups>>Groups
right click on Groups, create new Group and add your login id as new
member
Step2: configure web.config file
<authentication mode="Windows"/>
<authorization>
<allow roles="<system-name>\<GroupName>"/>
// or give only Group Name
//<allow roles="<GroupName>"/>
<deny users="*"/>
</authorization>
Step 3 : Run your application
run your application....
browser will promt with Login window
Provide your username and password that you used to login to server
system
and select the domain name as u r system name(u logged in domain)
Regards,
Jagan Mohan Varma P
.
- References:
- Re: how to use <authorization>
- From: Dominick Baier
- Re: how to use <authorization>
- Prev by Date: RE: making permissions optional
- Next by Date: Re: Why is this method requesting these permissions?
- Previous by thread: Re: how to use <authorization>
- Next by thread: Re: Windows Integrated Authentication not working
- Index(es):
Relevant Pages
|
|