467,876 Members | 1,226 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 467,876 developers. It's quick & easy.

Create a Site Map and Enable Security Trimming

I'm using Forms authentication and restricting access to a subdirectory
with a web.config:

<configuration>
<system.web>
<authorization>
<allow roles="PLAIN_USER"/>
<allow roles="ADMIN_USER"/>
<deny users="*" />
</authorization>
</system.web>
</configuration>

I also created a sitemap as follows:

<?xml version="1.0" encoding="utf-8" ?>
<siteMap xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0" >
<siteMapNode url="~/Default.aspx" title="Home">
<siteMapNode
url="~/MemberPages/Desktop.aspx?pid=2"
title=" Plain User Home |"
description="Plain User Home Page"
roles="PLAIN_USER" />
<siteMapNode
url="~/MemberPages/Desktop.aspx?pid=1"
title=" Amdin User Home |"
description="Admin Home Page"
roles="ADMIN_USER" />
</siteMapNode>
</siteMap>
However, both the "Plain User Home" and "Admin User Home" appear in the
menu. Shouldn't the roles restricted in the sitemap override the
authorization in the web.config?

Thanks
Jun 22 '06 #1
  • viewed: 960
Share:

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

12 posts views Thread by TGP Thought Meister | last post: by
reply views Thread by Guy Deprez | last post: by
4 posts views Thread by ferg | last post: by
16 posts views Thread by jblankenburg | last post: by
3 posts views Thread by igotyourdotnet | last post: by
3 posts views Thread by DBLWizard | last post: by
16 posts views Thread by Mich | last post: by
reply views Thread by jack112 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.