<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>An overview of how securityTrimmingEnabled is supposed to work.</title><link>http://blogs.msdn.com/dannychen/archive/2006/03/16/553005.aspx</link><description>I think that the #1 most confusing or misunderstood portion of Site Navigation is the securityTrimmingEnabled flag and the roles attribute on siteMapNodes. This post wil hopefuly clear up some of the confusion. SecurityTrimmingEnabled Firstly, let me</description><dc:language>en</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>re: An overview of how securityTrimmingEnabled is supposed to work.</title><link>http://blogs.msdn.com/dannychen/archive/2006/03/16/553005.aspx#563343</link><pubDate>Tue, 28 Mar 2006 22:33:55 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:563343</guid><dc:creator>Jonathan Minond</dc:creator><description>What exactly is it that calls Isaccessible to user? When is that called? 
&lt;br&gt;On the menuItemDataBind? or on the SitMap Initialize? Or where?
&lt;br&gt;</description></item><item><title>re: An overview of how securityTrimmingEnabled is supposed to work.</title><link>http://blogs.msdn.com/dannychen/archive/2006/03/16/553005.aspx#563348</link><pubDate>Tue, 28 Mar 2006 22:41:02 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:563348</guid><dc:creator>dannychen</dc:creator><description>IsAccessibleToUser is called for a variety of APIs in the SiteMapProviders. &amp;nbsp;From the root SiteMapProvider it is only called for RootNode and CurrentNode since GetChildNodes and FindSiteMapNode are abstract methods. &amp;nbsp;From StaticSiteMapProvider, these methods as well as ParentNode all call into IsAccessibleToUser. &amp;nbsp;In essense, any time you give it a node and ask it for other nodes, this should be called to trim the set of nodes that is being returned.&lt;br&gt;--&lt;br&gt;Danny</description></item><item><title>re: An overview of how securityTrimmingEnabled is supposed to work.</title><link>http://blogs.msdn.com/dannychen/archive/2006/03/16/553005.aspx#563435</link><pubDate>Wed, 29 Mar 2006 00:22:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:563435</guid><dc:creator>Serioga</dc:creator><description>Does SecurityTrimming works when Windows authentication is used? I've tried use this feature with Menu component and Windows authentication, as a result, menu becomes just invisible. Is it a bug, o I'm doing something wrong?</description></item><item><title>re: An overview of how securityTrimmingEnabled is supposed to work.</title><link>http://blogs.msdn.com/dannychen/archive/2006/03/16/553005.aspx#563996</link><pubDate>Wed, 29 Mar 2006 18:15:39 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:563996</guid><dc:creator>dannychen</dc:creator><description>SecurityTrimming does work with Windows Authentication. &amp;nbsp;However, in this case, the filtering is based on File ACLs. &amp;nbsp;I have more info in this blog post: &amp;nbsp;&lt;br&gt;&lt;br&gt;&lt;a rel="nofollow" target="_new" href="http://weblogs.asp.net/dannychen/archive/2005/04/19/403365.aspx"&gt;http://weblogs.asp.net/dannychen/archive/2005/04/19/403365.aspx&lt;/a&gt;&lt;br&gt;&lt;br&gt;--&lt;br&gt;Danny</description></item><item><title>re: An overview of how securityTrimmingEnabled is supposed to work.</title><link>http://blogs.msdn.com/dannychen/archive/2006/03/16/553005.aspx#564185</link><pubDate>Wed, 29 Mar 2006 21:48:47 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:564185</guid><dc:creator>Serioga</dc:creator><description>Yeah, I read this post yesterday, but the problem is that permissions work just fun, but my horizontal menu just disappeared. So, I mean user can access page, but horizontal menu from master page is not visible...</description></item><item><title>re: An overview of how securityTrimmingEnabled is supposed to work.</title><link>http://blogs.msdn.com/dannychen/archive/2006/03/16/553005.aspx#564291</link><pubDate>Thu, 30 Mar 2006 00:07:26 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:564291</guid><dc:creator>dannychen</dc:creator><description>My initial suspicion then is that you have a dummy top level node with no url, in which case you will need to add roles=&amp;quot;*&amp;quot; to it. &amp;nbsp;If this isn't enough to solve your issue, please email me through my blog and I can help you more with your issue over email.&lt;br&gt;--&lt;br&gt;Danny</description></item><item><title>re: An overview of how securityTrimmingEnabled is supposed to work.</title><link>http://blogs.msdn.com/dannychen/archive/2006/03/16/553005.aspx#564632</link><pubDate>Thu, 30 Mar 2006 10:21:21 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:564632</guid><dc:creator>Serioga</dc:creator><description>Danny, yes!!! You was right. The whole issue was with empty top level element. After I added roles=&amp;quot;*&amp;quot; everything started to wor as it suppose to.&lt;br&gt;I wonder, why this thing is not documented, or my empty top level element is so unussual?&lt;br&gt;&lt;br&gt;Tanks, one more time.</description></item><item><title>re: An overview of how securityTrimmingEnabled is supposed to work.</title><link>http://blogs.msdn.com/dannychen/archive/2006/03/16/553005.aspx#580869</link><pubDate>Fri, 21 Apr 2006 22:04:58 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:580869</guid><dc:creator>Marty</dc:creator><description>I am having a similar problem. &amp;nbsp;I tried putting a roles=&amp;quot;*&amp;quot; into my dummy top node but I still get an empty treenode. &amp;nbsp;Do you have any further advice?</description></item><item><title>re: An overview of how securityTrimmingEnabled is supposed to work.</title><link>http://blogs.msdn.com/dannychen/archive/2006/03/16/553005.aspx#580873</link><pubDate>Fri, 21 Apr 2006 22:09:28 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:580873</guid><dc:creator>dannychen</dc:creator><description>Marty,&lt;br&gt; &amp;nbsp;Perhaps this blog post might help you. &amp;nbsp;Just a shot in the dark. &amp;nbsp;Otherwise, I'll need to see more info to help you. &lt;br&gt;&lt;br&gt;&lt;a rel="nofollow" target="_new" href="http://weblogs.asp.net/dannychen/archive/2005/04/04/397072.aspx"&gt;http://weblogs.asp.net/dannychen/archive/2005/04/04/397072.aspx&lt;/a&gt;&lt;br&gt;&lt;br&gt;You can also post this issue on the ASP.NET forums (&lt;a rel="nofollow" target="_new" href="http://forums.asp.net"&gt;http://forums.asp.net&lt;/a&gt;) in the &amp;quot;MasterPages Themes &amp;amp; Navigation Controls&amp;quot; forum and get a lot of help. &amp;nbsp;&lt;br&gt;&lt;br&gt;--&lt;br&gt;Danny</description></item><item><title>re: An overview of how securityTrimmingEnabled is supposed to work.</title><link>http://blogs.msdn.com/dannychen/archive/2006/03/16/553005.aspx#582956</link><pubDate>Tue, 25 Apr 2006 14:19:51 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:582956</guid><dc:creator>Palle</dc:creator><description>Marty: I was having similar problem as Marty, I found that a siteMapNode in the very beginning of the site map was totally empty -&lt;br&gt;stuck in roles=&amp;quot;*&amp;quot; - bingo. &lt;br&gt;I was also not seeing the menu - and had all the other siteMapNodes containing roles=&amp;quot;*&amp;quot;.</description></item><item><title>re: An overview of how securityTrimmingEnabled is supposed to work.</title><link>http://blogs.msdn.com/dannychen/archive/2006/03/16/553005.aspx#607405</link><pubDate>Thu, 25 May 2006 23:46:39 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:607405</guid><dc:creator>wazzzuup</dc:creator><description>I have problem corresponding discussing topic.&lt;br&gt;Can anyone say something about this bug:&lt;br&gt;&lt;br&gt;I have two groups of roles: administrators and users and have root folder and admin folder of my site. I have two rules: allow acces to admin folder to administrators and deny acces to it for all other users.&lt;br&gt;&lt;br&gt;So, I'm logging in as administrator at first and then, if I don't log out using LoginView Control and just go to page with login &amp;nbsp;control and log in as non-administrator user, I can type path to page in restricted folder Admin and I CAN load it! Remember - the required condition for this is not to log out from administrator role and directly log as user. I think this is possible situation - just forget to log out and user who even relogin as itself could get access to restrict site area...&lt;br&gt;&lt;br&gt;So, How can we close this hole?&lt;br&gt;</description></item><item><title>What's wrong with ASP.NET provider model? - The XmlSiteMapProvider</title><link>http://blogs.msdn.com/dannychen/archive/2006/03/16/553005.aspx#2047514</link><pubDate>Sun, 08 Apr 2007 00:43:08 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:2047514</guid><dc:creator>Paulo Morgado</dc:creator><description>&lt;p&gt;Besides the problem with spaces in query strings (the same thing happens for the entire URL), you cannot&lt;/p&gt;
</description></item><item><title>O que há de errado com o modelo de Providers do ASP.NET? - XmlSiteMapProvider</title><link>http://blogs.msdn.com/dannychen/archive/2006/03/16/553005.aspx#2047679</link><pubDate>Sun, 08 Apr 2007 01:28:38 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:2047679</guid><dc:creator>Paulo Morgado</dc:creator><description>&lt;p&gt;Al&amp;#233;m do problema com espa&amp;#231;os em query strings (o mesmo acontece para todo o URL), n&amp;#227;o se pode derivar&lt;/p&gt;
</description></item><item><title>Site Navigation, siteMap and SiteMapProvider overview </title><link>http://blogs.msdn.com/dannychen/archive/2006/03/16/553005.aspx#5997021</link><pubDate>Fri, 09 Nov 2007 01:07:15 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:5997021</guid><dc:creator>Ahmed Hussein</dc:creator><description>&lt;p&gt;Site Navigation, siteMap and SiteMapProvider overview&lt;/p&gt;
</description></item><item><title>Restricci??n de Accesos en ASP.NET 2.0 &amp;laquo; Ilopez&amp;#8217;s Weblog</title><link>http://blogs.msdn.com/dannychen/archive/2006/03/16/553005.aspx#7110361</link><pubDate>Mon, 14 Jan 2008 21:28:43 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:7110361</guid><dc:creator>Restricci??n de Accesos en ASP.NET 2.0 « Ilopez’s Weblog</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://ilopez.wordpress.com/2008/01/14/restriccion-de-accesos-en-aspnet-20/"&gt;http://ilopez.wordpress.com/2008/01/14/restriccion-de-accesos-en-aspnet-20/&lt;/a&gt;&lt;/p&gt;
</description></item><item><title>Employment Wages &amp;raquo; -[ Danny Chen ]- : An overview of how securityTrimmingEnabled is &amp;#8230;</title><link>http://blogs.msdn.com/dannychen/archive/2006/03/16/553005.aspx#8341556</link><pubDate>Fri, 28 Mar 2008 15:50:22 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8341556</guid><dc:creator>Employment Wages » -[ Danny Chen ]- : An overview of how securityTrimmingEnabled is …</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://employmentwagesblog.info/danny-chen-an-overview-of-how-securitytrimmingenabled-is/"&gt;http://employmentwagesblog.info/danny-chen-an-overview-of-how-securitytrimmingenabled-is/&lt;/a&gt;&lt;/p&gt;
</description></item><item><title>re: An overview of how securityTrimmingEnabled is supposed to work.</title><link>http://blogs.msdn.com/dannychen/archive/2006/03/16/553005.aspx#8560765</link><pubDate>Fri, 30 May 2008 02:40:10 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8560765</guid><dc:creator>vkelman</dc:creator><description>&lt;p&gt;Hi Danny! I'm using a custom SQL-based Site Map provider.&lt;/p&gt;
&lt;p&gt;You said above, &amp;quot;A page that should not be accessed and cannot be accessed is secure.&amp;quot; I think I can control both security trimming (a visibility of page on menu) and accessibility by using IsAccessibleToUser(). I can either&lt;/p&gt;
&lt;p&gt;1) Attach custom SiteMapResolve event handler method and inside check if SiteMap.CurrentNode.IsAccessibleToUser() == true. If it is false - redirect to an appropriate page (default.aspx, for example).&lt;/p&gt;
&lt;p&gt;2) Check and do the same thing in master page's &amp;nbsp;OnInit() method.&lt;/p&gt;
&lt;p&gt;3) Attach some custom page event handler using HttpModule or global.asax and perform that SiteMap.CurrentNode.IsAccessibleToUser() check and redirect there.&lt;/p&gt;
&lt;p&gt;Could you comment on it please? Is it a good approach?&lt;/p&gt;
</description></item><item><title>Recursos interesantes &amp;laquo; Tincho Repository</title><link>http://blogs.msdn.com/dannychen/archive/2006/03/16/553005.aspx#8708503</link><pubDate>Tue, 08 Jul 2008 17:51:17 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8708503</guid><dc:creator>Recursos interesantes &amp;laquo; Tincho Repository</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://martinmelchior.wordpress.com/2008/07/08/recursos-interesantes/"&gt;http://martinmelchior.wordpress.com/2008/07/08/recursos-interesantes/&lt;/a&gt;&lt;/p&gt;
</description></item></channel></rss>