roleProvider and Windows Authentication

From: Mark Parter (MarkParter_at_discussions.microsoft.com)
Date: 05/21/05

  • Next message: Wilson Ng: "can't locate the printer in Server"
    Date: Fri, 20 May 2005 16:58:01 -0700
    
    

    I have a sitemap file containing all of the pages in my application so far. I
    have a menu control on a master page which uses this sitemap as it's
    datasource to build the menu. I'm using Windows authentication and the
    AspNetWindowsRoleTokenProvider but when I assign roles to a siteMapNode, it
    is still shown in the menu, even though I'm not in the group specified!

    Here's the relevant section of my web.config;

    <roleManager defaultProvider="AspNetWindowsTokenRoleProvider" />
    <authentication mode="Windows"/>

    And my sitemap;

    <siteMapNode title="Registers" url="" description="">
    <siteMapNode title="New Register" url="~/registers/newregwiz.aspx"
    description="Create a new register based upon an issued reigster template" />
    <siteMapNode title="Edit Register" url="~/registers/editregister.aspx"
    description="Edit an existing register" />
    <siteMapNode title="Load Register" url="~/registers/loadregister.aspx"
    description="Load a Register for editing" SecurityTrimmingEnabled="true"
    roles="ARS_Administrators" />
    <siteMapNode title="Quick Register Entry" url="~/registers/qregentry.aspx"
    description="Quickly update a register" />
    <siteMapNode title="Register Entry" url="~/registers/regentry.aspx"
    description="Update a register" />
    <siteMapNode title="Register History" url="~/registers/reghist.aspx"
    description="Show the history of a register" />
    </siteMapNode>

    Any ideas why it's not working?


  • Next message: Wilson Ng: "can't locate the printer in Server"

    Relevant Pages

    • Re: roleProvider and Windows Authentication
      ... description="Create a new register based upon an issued reigster template" /> ... description="Show the history of a register" /> ... thei are reflected automaticly in the siteMap. ...
      (microsoft.public.dotnet.framework.aspnet.security)
    • 2.0 Noob needs help with sitemap
      ... Could not find the sitemap node with URL '~/Web.sitemap'. ... I have a master page that has a menu control and a SiteMapDataSource on it. ...
      (microsoft.public.dotnet.framework.aspnet)
    • Re: Button clicks not firing!
      ... primarily anything on the Master is firing but those in the ... I've tried this as a custom control as well as adding it directly to ... register the postback or callback data for validation. ...
      (microsoft.public.dotnet.framework.aspnet)
    • Re: Button clicks not firing!
      ... primarily anything on the Master is firing but those in the ... I've tried this as a custom control as well as adding it directly to ... Invalid postback or callback argument. ... register the postback or callback data for validation. ...
      (microsoft.public.dotnet.framework.aspnet)
    • RE: new menu control is very slow
      ... added links in the siteMap, and added some names to the GridView. ... > Regarding on the Menu control displaying slow problem, ... If the problem occurs on all the client, ...
      (microsoft.public.dotnet.framework.aspnet.webcontrols)