Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Security > Help on protect sub-directories with roles

Thread Tools

Help on protect sub-directories with roles

Posts: n/a
I am trying to protect sub-directories making use of the web.config
Additionally I would like to make us of my internal roles instead of the
user(names). I.e.:

<location path="web/admin">
<allow roles="Super Administrators"/>
<deny users="?"/>

This does NOT seem to work! On the other hand

<location path="web/admin">
<allow roles="sa"/>
<deny users="?"/>

does work.
I would have expected that in the former case the IPrincipal>>IsInRole
method is called, but this is not the case.

Can anybody enlighten me on how to make rolebased authorization, or am I
trying to do soemthing impossible.

thx all!
Reply With Quote

Thread Tools

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

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
After Seeing The Local TV Interviews With Microsoft Claiming Vista Will Help Parents Protect Kids From The Net better... E. Scrooge NZ Computing 81 02-08-2007 12:18 AM
help: derived class uses base class protect value tomy C++ 5 07-24-2006 03:01 PM
Is there really no one who can help me password protect a page? Narlen HTML 9 11-04-2005 03:42 PM
Application level roles + Item level roles... how to do it? Jéjé ASP .Net Security 0 09-26-2005 11:06 PM
Protect Online Images from Hotlinking and Right-clicking - Request For Help Ted Stresen-Reuter Digital Photography 62 04-24-2004 12:30 AM