Dynamically Load Website.map File Based on Active Directory Group

Last post 04-15-2007 9:37 PM by nhaas. 2 replies.

Sort Posts:

  • Dynamically Load Website.map File Based on Active Directory Group

    04-06-2007, 9:10 PM
    • Member
      82 point Member
    • etennett
    • Member since 07-12-2006, 5:31 PM
    • Posts 22

    I'm trying to figure out the best way to dynamically load a website.map file based on the authenticated users Active Directory Group.  Has anyone done this?

     My idea was to have the various ad groups associated in the AppSettings section of the web.config as follows:

     <add key="Team1_WebSite.Map" value="Team1_AD_GROUP"/>

     <add key="Team2_WebSite.Map" value="Team2_AD_GROUP"/>

    The key is the idea is the website.map that i would dynamically load.  The value is the active directory group assocated with the website.map file.

    Then in the masterpage Load event I would check ad for the group membership and load the appropriate file.

    Am I on the right path?

    Thanks.

    E
  • Re: Dynamically Load Website.map File Based on Active Directory Group

    04-06-2007, 10:09 PM
    Answer
    • Star
      12,126 point Star
    • shados
    • Member since 07-07-2006, 11:24 PM
    • Posts 2,202
    Im wondering if the more standard scenario wouldn't apply to you... With a sitemap, you can automatically trim from the navigation the nodes that a user doesn't have a right to access...

    (see http://msdn2.microsoft.com/en-us/library/ms178428.aspx )

    So if you use integrated security, and allow or deny access to parts of your site based on Active Directory Groups, then have a single, large site map, and enable sitemap trimming, automatically users will only see the parts of the maps that belong to their group(s), with the advantage that this won't mess up if a user is part of multiple groups, as opposed to what you're wanting to do...

    What do you think? Wouldn't that be easier?
  • Re: Dynamically Load Website.map File Based on Active Directory Group

    04-15-2007, 9:37 PM
    • Member
      264 point Member
    • nhaas
    • Member since 02-14-2006, 4:57 PM
    • Fresno
    • Posts 83

    Sorry for jumping onto this thread, I am too looking at the same thing with multple site maps.

     

    I cannot set groups up in the active directory as that is the thing with another group and I dont really want to go throught the hoopes of getting the permissions, and we are still using SQL 2005.

    How can I get this to work using not using the integrated security?

    VB,.NET 3.5
    MS SQL 2000
Page 1 of 1 (3 items)