Site Config Question

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

  1. #1

    Default Site Config Question

    Hi

    I have a site that runs in an intranet environment, therefore the
    authenication method in IIS is 'Integrated Windows authentication' and no
    Anonymous access. In my web.config <authentication mode="Windows" />, works
    fine.

    We want to release the site to the internet whilst maintaining integrated
    Windows authenication for the intranet users; and having a forms like
    authenication for internet users.

    I didn't think this was possible, any ideas?
    Craig Guest

  2. Similar Questions and Discussions

    1. Web Server Config tool not seeing IIS6 virtual site.
      I dont know if I am posting in the right place but am working on CF High availiability using multiple CF instances connected to different virtual...
    2. Error loading XML file c:\windows\microsoft.net\framework\v1.0.3705\Config\machine.config
      I had many ASP.NET web applications that I created before I had to rebuild my machine. After a fresh install of XP Pro, VS.NET 2003, etc, I now...
    3. machine.config <processModel> setting question
      I'm having problems trying to do follow examples I've seen using the EventLog and Process classes. I'm getting security exceptions (access denied). ...
    4. config file: a) what Module ? b) conditionals in config (for multiple hosts)
      Hi, a) I am looking for a module to handle config files. There are a number of these modules, like AppCconig. Any consensus about The Right...
    5. [RCR] Include CONFIG::Config['rubydocdir'] in rbconfig.rb
      Hi folks, I apologise if people have read this RCR and are not interested, but this is what I consider to be an important RCR, not a merely...
  3. #2

    Default RE: Site Config Question

    Not sure I follow- what is it that you hope to accomplish by enabling windows
    authentication and forms?

    re: two authentication modes within the same website-- yes, it is possible
    but you can't implement both authentication modes within the same
    directory(which is probably b/c you can only implement 1 authentication mode
    per application domain).

    Here's how: Set the authentication mode to windows in the root web.config
    and then configure a child dir as its own application in IIS. Set the child
    dir's authentication mode to forms by either using the location element in
    the root web.config or putting a new web.config at the root of the child
    dir.

    See this for more info:
    [url]http://www.theserverside.net/articles/article.tss?l=FormAuthentication[/url]

    If your goal is to keep anonymous users out then you can accomplish this for
    both intranet users and those who access the site remotely (internet users)
    by setting the app's athentication mode to windows and then adding a deny tag
    in the authorization element by setting its users property -anonymous- , aka
    "?"

    Denying anonymous users will prompt the server to challenge all
    users(whether they are accessing the site from inside your network or not to
    provide thier credentials)

    '<authentication mode="Windows" />
    '' <authorization>
    '' <deny users="?" />
    ' </authorization>

    The info above is based on the assumption that your server's machine.config
    uses the framework's default settings (specifically the username attribute of
    the processmodel element ("machine" and the impersonation element("no"))

    If this is what you want.. you can take an additional step that will make
    the lives of your users easier: if your organization uses Explorer 6.0 as its
    default browser then employees can use IE's "zone" feature and list the
    intranet app's url in IE's "Trusted Sites Zone." By changing a default
    security setting (for this zone only) users can allow the browser to
    authomaticly pass thier credentials to the site so they won't have to
    manually login.

    See this for more info:
    [url]http://support.microsoft.com/default.aspx?scid=kb;en-us;264086[/url]

    1 sneaky suggestion: if you opt to do this.. do it AFTER your users have had
    to go a week or two manually logging into the app. The reason: if you give
    this to them from the get-go the convience is perceived as normal. If you
    wait a little bit then you'll have made everyone's lives a little easier in
    the organization in a way that both tehnical ppl and non-technical ppl(such
    as those who decide things like salary increases) can understand and
    appreciate.


    "Craig" wrote:
    > Hi
    >
    > I have a site that runs in an intranet environment, therefore the
    > authenication method in IIS is 'Integrated Windows authentication' and no
    > Anonymous access. In my web.config <authentication mode="Windows" />, works
    > fine.
    >
    > We want to release the site to the internet whilst maintaining integrated
    > Windows authenication for the intranet users; and having a forms like
    > authenication for internet users.
    >
    > I didn't think this was possible, any ideas?
    Chris Mohan Guest

  4. #3

    Default RE: Site Config Question

    One clarification for the following paragraph.
    DOn't list the site in the trusted zone, list it the "Local Intranet" zone.
    The reason: if users start listing arbitrary sites in the trusted list.. then
    the security change will pass thier info to those sites too which are likely
    to be outside your network
    > If this is what you want.. you can take an additional step that will make
    > the lives of your users easier: if your organization uses Explorer 6.0 as its
    > default browser then employees can use IE's "zone" feature and list the
    > intranet app's url in IE's "Trusted Sites Zone." By changing a default
    > security setting (for this zone only) users can allow the browser to
    > authomaticly pass thier credentials to the site so they won't have to
    > manually login.
    >
    > See this for more info:
    > [url]http://support.microsoft.com/default.aspx?scid=kb;en-us;264086[/url]
    Chris Mohan 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