473,378 Members | 1,162 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

Security Trimming not working 100% showing some nodes?!?

This is what i have:

* web.config:
<siteMap enabled="true" defaultProvider="smDefault">
<providers>
<add name="smDefault"
type="System.Web.XmlSiteMapProvider"
securityTrimmingEnabled="true"
siteMapFile="Web.sitemap"/>
</providers>
</siteMap>

* Web.sitemap:
<?xml version="1.0" encoding="utf-8" ?>
<siteMap xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0" >
<siteMapNode url="home.aspx" title="HOME" roles="*">
<siteMapNode url="" title="DOCUMENTS" roles="admin, user">
<siteMapNode url="dadd.aspx" title="ADD" description=""
roles="admin"/>
<siteMapNode url="dview.aspx" title="VIEW" description=""
roles="admin, user"/>
</siteMapNode>
<siteMapNode url="" title="MANAGE USERS" roles="admin">
<siteMapNode url="dadd.aspx" title="ADD" description=""
roles="admin"/>
</siteMapNode>
</siteMapNode>
</siteMap>
<authorization>
<allow users="*" />
</authorization>

*Master page
<asp:Menu ID="Menu1" runat="server" DataSourceID="ds"
EnableTheming="True" MaximumDynamicDisplayLevels="4"
Orientation="Horizontal"/>
<asp:SiteMapDataSource ID="ds" runat="server" ShowStartingNode="True"
SiteMapProvider="smDefault" />

»user« will see this:
- HOME
- DOCUMENTS
- ADD ( he shouldn't see this!!!!!!!!!)
- VIEW

»admin« will see this:
- HOME
- DOCUMENTS
- ADD
- VIEW
- MANAGE USERS
- ADD
So it does hide item MANAGE USERS but not item DOCUMENTS / ADD!!! Is
this normal? Thanks in advance, Jo.

Jun 15 '06 #1
2 2394
What i found out is that IT DOES trim
-- any nodes which have no url (submenus)

and IT DOES NOT trim
-- any nodes which have url specified.

Jun 16 '06 #2
Found this and it seems to work:
http://aspadvice.com/blogs/dsussman/...0/16/2268.aspx

Jun 16 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

116
by: Mike MacSween | last post by:
S**t for brains strikes again! Why did I do that? When I met the clients and at some point they vaguely asked whether eventually would it be possible to have some people who could read the data...
2
by: Scott | last post by:
How do I trim the left digit from a number? The user will input a number with 3 digit value and I need to trim the leftmost value from the number. A typical value might be 123.4567 and I need to...
0
by: Paul | last post by:
On my local site, I have a folder that is security trimmed, so that only members of a Role can see it after they register and log on (I set the memberships). All works fine locally. However,...
1
by: Kbalz | last post by:
I'm using xml site map to trim my security on my menus.. Its working rather well, but I'm having this gripe about it.. Here's my psuedo problem.. <?xml version="1.0" encoding="utf-8" ?>...
0
by: rmgalante | last post by:
Hi, I've got my site configured to use a menu control, a site map, security trimming, and roles. Everything seems to be working, except I have the following problem. If I define a...
1
by: Darsin | last post by:
What i am doing is to pull the data from a CMS and import it to Word 2007 Beta and i also have to export the data from Word 2007 Beta back to that CMS. We have with us two Web Services of the CMS....
0
by: tweakmy | last post by:
Hi to all expert, ladies coders and gentlemen coders, I m quite newbie in this. I just started vb.net not long ago..because i was too crazy bout making an application for my own phone. as for now, i...
0
by: bogdan | last post by:
Hi, I have security trimming enabled in web.config and the following site map attached to a menu: <siteMapNode roles="*" url="~/Default.aspx" title="Home" description=""> <siteMapNode...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.