Newbie Question about security

Last post 12-14-2006 12:20 PM by BBarts. 5 replies.

Sort Posts:

  • Newbie Question about security

    12-13-2006, 5:20 PM
    • Loading...
    • BBarts
    • Joined on 12-13-2006, 4:46 PM
    • Posts 5

    I have a need to secure a particular aspx file from most users of the system. We will call it X. I have a virtual directory on an 2k3 server pointed to folder Y which contains file X. The site itself is using SSL and Windows authenication.

    I have a group called A created in active directory that needs access to the application all other users do not. I have tired file and folder level security using NTFS permissions and the application doesn't work if they are applied.

    I am new to ASP.NET and would like the simplest way to secure this file.   Any help would be appreciated.

     Thank you

     B

     

     

     

  • Re: Newbie Question about security

    12-13-2006, 5:38 PM
    • Loading...
    • markwsanders
    • Joined on 11-08-2002, 1:28 PM
    • Tulsa, OK
    • Posts 82
    Check out the <location> Element of the Web.config file.
    Mark Sanders, MCAD, MSBS

    Be a part of the Community Recognition Program. Click "Mark as Answer" on the post that answered your question. This gives you points and rewards the person who helped you as well.
  • Re: Newbie Question about security

    12-14-2006, 2:18 AM
    • Loading...
    • GeorgeZ
    • Joined on 11-16-2006, 6:09 AM
    • UpC
    • Posts 552

    Here is one example of

      <location path="X.apx">
        <system.web>
          <authorization>
            <allow users="?" />
          </authorization>
        </system.web>
      </location>
    </configuration>
    http://support.microsoft.com/kb/316871
  • Re: Newbie Question about security

    12-14-2006, 9:36 AM
    • Loading...
    • BBarts
    • Joined on 12-13-2006, 4:46 PM
    • Posts 5

    Thanks I will try it. Another question though does this web.config file go inside of the folder containing the file or in the root?

     

    Thank you

  • Re: Newbie Question about security

    12-14-2006, 11:23 AM
    • Loading...
    • markwsanders
    • Joined on 11-08-2002, 1:28 PM
    • Tulsa, OK
    • Posts 82

    Typically you will have a Web.config file in the root folder. This is not a requirement. Technically you can have a Web.config file in any folder of your application.

    MORE INFO: ASP.NET Configuration is implemented using a Hierarchical Configuration Architecture.

    Mark Sanders, MCAD, MSBS

    Be a part of the Community Recognition Program. Click "Mark as Answer" on the post that answered your question. This gives you points and rewards the person who helped you as well.
  • Re: Newbie Question about security

    12-14-2006, 12:20 PM
    • Loading...
    • BBarts
    • Joined on 12-13-2006, 4:46 PM
    • Posts 5

    It doesn't seem to be working for me. am I missing something (realizing that is a loaded question)?

    ?xml version="1.0"?>
    <configuration>
    <location path="folderY">
        <system.web>
           <authentication mode="Windows"/>
            <authorization>
                <allow roles="domain\group" />
                <deny users="*" />
              </authorization>
       </system.web>
     </location>
    </configuration>

     

    Thank you

Page 1 of 1 (6 items)
Microsoft Communities
Page view counter