Results 1 to 3 of 3

Thread: [RESOLVED] Role based authorization for .aspx pages...misbehaving

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Sep 2002
    Posts
    211

    Resolved [RESOLVED] Role based authorization for .aspx pages...misbehaving

    Hello,

    I am having a very simple intranet site. I took the sample for my project from Gary (moderator of this forum at http://www.vbforums.com/showthread.p...75#post3625975)

    I have integrated windows authentication with Role based authorization. There are only 3 .aspx pages and I have a tree view control on the master page. depending on the choices that the user's make on the tree view control the .aspx pages gets displayed.

    There are only 2 active directory groups. Sales and Marketing.
    My network id is not in Sales AD group.So obviously it prompts me to put userid and password and it throws not authorized error when i try to access PortfolioData.aspx page. So far so good.

    But I am a member of AD group MARKETING. I should be able open the page Schedules.aspx (please see the config file below). But I still get the Error message 401.2.: Unauthorized: Logon failed due to server configuration.

    I am confused about this role based authorization.
    can someone help me please.
    Code:
    <!--
    <authorization>
    
          <allow roles="domain\ADGROUP_SALES"/>
    
           <deny users="*"/>
    
        </authorization>
        
       
    -->
    
     <location path="default.aspx">
        <system.web>
          <authorization>
           <allow users="*"/>
          </authorization>
        </system.web>
      </location>
      <location path="PortfolioData.aspx">
        <system.web>
          <authorization>
            <allow users="domain\ADGROUP_SALES"/>
            <deny users="*"/>
          </authorization>
        </system.web>
      </location>
      <location path="Schedules.aspx">
        <system.web>
          <authorization>
            <allow users="domain\ADGROUP_SALES,domain\ADGROUP_MARKETING"/>
            <deny users="*"/>
          </authorization>
    
    nath
        </system.web>
      </location>

  2. #2

    Thread Starter
    Addicted Member
    Join Date
    Sep 2002
    Posts
    211

    Re: Role based authorization for .aspx pages...misbehaving

    found the mistake..

    <allow roles="domain\ADGROUP_SALES,domain\ADGROUP_MARKETING"/>

  3. #3
    PowerPoster gep13's Avatar
    Join Date
    Nov 2004
    Location
    The Granite City
    Posts
    21,963

    Re: Role based authorization for .aspx pages...misbehaving

    Can you remember to mark your thread as resolved?

    Thanks

    Gary

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width