Apply windows security to all files in web app

Ask a Question related to ASP.NET Security, Design and Development.

  1. #1

    Default Apply windows security to all files in web app

    Hi,

    I have set up windows authentication in the web.config file and authentication to allow only identified windows users. I have placed a datalink file (a udl-file) in a subfolder in the application directory, but web.config settings for the application does not seem to apply to this file. How can I set up windows authentication and authorization for all files in the web folder?

    Thanks, Dorte
    Dorte Guest

  2. #2

    Default RE: Apply windows security to all files in web app

    The udl file is not subject to asp.net security because it is not a file type which is mapped to the aspnet_isapi.dll. The security on the ACL in this case is checked by IIS. If you don't have Windows Integration or Basic Security set up there, but instead anonyomous, give the IUSR_MachineName access to the file.

    An alternative is to map the file type to the aspnet_isapi.dll, in which case, you would also have to set impersonation to true on top of setting authentication to windows.

    hope this helps,


    "Dorte" wrote:
    > Hi,
    >
    > I have set up windows authentication in the web.config file and authentication to allow only identified windows users. I have placed a datalink file (a udl-file) in a subfolder in the application directory, but web.config settings for the application does not seem to apply to this file. How can I set up windows authentication and authorization for all files in the web folder?
    >
    > Thanks, Dorte
    John Sivilla Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139