location authorization

T

TdarTdar

Hello,
using the location stuff, do i have to define this for each sub directory in
this directory also or is there something i can do to include the
subdirectories in the=:


<location path="SITE_ADMIN" >
<system.web>
<authorization>
<allow users="SADMIN" />
<deny users="*" />
</authorization>
</system.web>
</location>


would i have to this:
<location path="SITE_ADMIN/GIS" >
<system.web>
<authorization>
<allow users="SADMIN" />
<deny users="*" />
</authorization>
</system.web>
</location>

<location path="SITE_ADMIN/GIS/CITY" >
<system.web>
<authorization>
<allow users="SADMIN" />
<deny users="*" />
</authorization>
</system.web>
</location>

for every directory i have under that directory, because when a loged in
user browses a page that is in that subdirectory they get the log in screen
like they dont have premission to view but it is in the SITE_ADMIN and they
are in the SADMIN role.

?
 
M

[MSFT]

Hello,

You don't need to define it for each sub diretocy, only the top one is
enough:

<location path="SITE_ADMIN" >
<system.web>
<authorization>
<allow users="SADMIN" />
<deny users="*" />
</authorization>
</system.web>
</location>

Luke
 
T

TdarTdar

Then why when a user that is in the sadmin group calls a page in that area it
flips me to the login.aspx
 
T

TdarTdar

also I should mention the SP that you have in SQL for the adding new roles
was missing the roleid = newid() in the sp, I was not able to add a new role
until i fixed this on the sql server 2k. I will post sp tomorrow so you can
check it out for everyone else..
 
M

[MSFT]

I missed an issue in my last message:

<location path="SITE_ADMIN" >
<system.web>
<authorization>
<allow users="SADMIN" />
<deny users="*" />
</authorization>
</system.web>
</location>


I think it should be:

<allow roles="SADMIN" />

Hope this help,

Luke
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,968
Messages
2,570,154
Members
46,702
Latest member
LukasConde

Latest Threads

Top