Discussion:
securityTrimmingEnabled and Windows authentication
(时间太久无法回复)
Nick nkw
2007-02-21 20:52:34 UTC
Permalink
I am using Windows authentication and I want to hide some menu items if
the user has no permission on folders/aspx files. I tried add the
following in web.config and it hide all menu items.

<siteMap defaultProvider="default">
<providers>
<clear />
<add name="default" type="System.Web.XmlSiteMapProvider"
siteMapFile="Web.sitemap" securityTrimmingEnabled="false" />
</providers>
</siteMap>

What's the step to set it up?
Patrick.O.Ige
2007-02-21 22:42:40 UTC
Permalink
Nick enjoy this
http://weblogs.asp.net/scottgu/archive/2006/07/23/Recipe_3A00_-Implementing-Role-Based-Security-with-ASP.NET-using-Windows-Authentication-and-SQL-Server.aspx
Hope that
helps
Patrick
I am using Windows authentication and I want to hide some menu items if the
user has no permission on folders/aspx files. I tried add the following in
web.config and it hide all menu items.
<siteMap defaultProvider="default">
<providers>
<clear />
<add name="default" type="System.Web.XmlSiteMapProvider"
siteMapFile="Web.sitemap" securityTrimmingEnabled="false" />
</providers>
</siteMap>
What's the step to set it up?
继续阅读narkive:
Loading...