Go Back   Velocity Reviews > Newsgroups > ASP Net
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply

ASP Net - <allow roles ...> does NOT work ???

 
Thread Tools Search this Thread
Old 03-23-2005, 03:53 PM   #1
Default <allow roles ...> does NOT work ???


Hi,

I can't make <allow roles...> to work in web.config

I'm logging on as 'Administrator' and try to access a site for which the IIS-authentication method is set to 'Integrated Windows' only

Following are the web.config-entries of the site :
<authentication mode="Windows" />
<authorization>
<allow users="MYDOMAIN\Administrator" />
<deny users="*" />
</authorization>

When I access the site : --> no problem
Authenticated user: MYDOMAIN\Administrator

but changing web.config as follows gives me an "Access Denied"
<authentication mode="Windows" />
<authorization>
<allow roles="MYDOMAIN\Administrators" />
<deny users="*" />
</authorization>

And I double-checked that Administrator is a member of the Administrators-group
I tried with other users-roles and every time I allow only access to roles doesn't I have access ??
How come ?

Any ideas ?
thanks
Chris


************************************************** ********************
Sent via Fuzzy Software @ http://www.fuzzysoftware.com/
Comprehensive, categorised, searchable collection of links to ASP & ASP.NET resources...


cmrchs@yahoo.com
  Reply With Quote
Old 03-23-2005, 04:39 PM   #2
Brock Allen
 
Posts: n/a
Default Re: <allow roles ...> does NOT work ???
If you use BUILTIN\Administrators then it will check against the local machine's
groups (which Domain Admins should be a part of).

-Brock
DevelopMentor
http://staff.develop.com/ballen



> Hi,
>
> I can't make <allow roles...> to work in web.config
>
> I'm logging on as 'Administrator' and try to access a site for which
> the IIS-authentication method is set to 'Integrated Windows' only
>
> Following are the web.config-entries of the site :
> <authentication mode="Windows" />
> <authorization>
> <allow users="MYDOMAIN\Administrator" />
> <deny users="*" />
> </authorization>
> When I access the site : --> no problem
> Authenticated user: MYDOMAIN\Administrator
> but changing web.config as follows gives me an "Access Denied"
> <authentication mode="Windows" />
> <authorization>
> <allow roles="MYDOMAIN\Administrators" />
> <deny users="*" />
> </authorization>
> And I double-checked that Administrator is a member of the
> Administrators-group
> I tried with other users-roles and every time I allow only access to
> roles doesn't I have access ??
> How come ?
> Any ideas ?
> thanks
> Chris
> ************************************************** ********************
> Sent via Fuzzy Software @ http://www.fuzzysoftware.com/
> Comprehensive, categorised, searchable collection of links to ASP &
> ASP.NET resources...






Brock Allen
  Reply With Quote
Old 03-23-2005, 05:31 PM   #3
cmrchs@yahoo.com
 
Posts: n/a
Default Re: <allow roles ...> does NOT work ???
Hi,

Great !!
BUILTIN\Administrators works

but why doesn't MYDOMAIN\Administrators work ?
it's what the docs/samples always say.

Chris

************************************************** ********************
Sent via Fuzzy Software @ http://www.fuzzysoftware.com/
Comprehensive, categorised, searchable collection of links to ASP & ASP.NET resources...


cmrchs@yahoo.com
  Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Any help for maintaining the work flow of the system………. Zachar Software 1 08-04-2008 06:49 AM
Back button doesn't work when it is a secure page returning to a non secure page Miss Mary General Help Related Topics 1 09-21-2007 10:32 AM
menu control doesn`t work on Studio 10 Plus MZ DVD Video 0 03-05-2007 09:13 PM
Identity Theft at Work @ A True Review Silverstrand Front Page News 0 06-27-2006 03:56 PM
Rumor - Lucas has "subtly" altered the original Star Wars trilogy Modemac DVD Video 213 10-09-2004 02:43 AM




SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46