.NET HttpModule & NTLM Integrated Authentication

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

  1. #1

    Default .NET HttpModule & NTLM Integrated Authentication

    What I'm trying to do is Create an ASP.Net app that has both
    Windows-authenticated users and Anonymous users. The idea is this:

    When authenticated users attempt to access the site, their credentials are
    passed to the Request, and I use the DOMAIN\USER value via the AUTH_USER
    server variable to access their accounts. These people would never have to
    log in to the app, only their machines on the network.

    When anonymous users attempt to access the site, they are redirected to a
    login page, rather than getting the Challenge dialog. Their login is
    verified against a database and I alter the Current User with a
    GenericPrincipal object.


    I tried enabling 'Allow Anonymous Access' in IIS and producing the challenge
    myself with a custom HttpModule, but was unable to make the challenge
    myself.

    Then I tried DISabling anonymous access and IIS provided the challenge and
    the 401 response before it even got to my custom HttpModule.


    Is there ANY way to acheive what I'm trying to do? Is there some way I can
    intercept a request before IIS issues a challenge and issue the challenge
    myself?


    Rob Mayo Guest

  2. Similar Questions and Discussions

    1. NTLM API Authentication
      Hi, I'm totally novice when it comes to authentication protocols. Here is what is needed to be done: Create a web service which calls the NTLM API...
    2. NTLM Authentication Across Forests
      I have a problem that I've spent a considerable amount of time researching and still haven't quite found the answer. I have an intranet web...
    3. Custom authentication using a HttpModule. Knowing when to authenticate ...
      I have been trying to implement my own custom authentication (like forms, windows, or passport), but I have run into a little problem I was hoping...
    4. Authentication using HttpModule
      I know that we can perform authentication of .aspx pages with an HttpModule, and that the same module can probably be used for static content (.htm,...
    5. ASP.Net web services authentication (NTLM)
      We are developing an windows forms application that communicates to deployed web services on and Windows 2000 server. We are using windows...
  3. #2

    Default Re: .NET HttpModule & NTLM Integrated Authentication

    Rob,

    This case may by a bit tricky.
    One of the security design considerations to take into account, should be to
    rely as much as possible on the operating system security subsystem and
    avoid whenever possible, creating your own custom solution. With this
    premise in mind, you may try to set first the IIS authentication mode
    (remember that ASP.NET is running over IIS, so the first security checkpoint
    will be executed by IIS).
    If you check Anonymous and NTLM/Kerberos as you auth methods, IIS will
    first try to authenticate as Anonymous so you will always get the anonymous
    access account. Remember that for IIS, there is no such an "Anonymous user",
    so IIS will try to authenticate or not (if checked Anonymous) and it will
    always run the ASP.NET worker process under some Windows account.
    Based on this, your auth methods are incompatible for the same application
    basically because you are using two different auth methods (Windows/AD and
    Forms/Custom Resource) that where designed for different purposes.


    --
    Hernan de Lahitte
    Lagash Systems S.A.
    [url]http://www.lagash.com[/url]



    "Rob Mayo" <NOSPAM@NOSPAM.COM> wrote in message
    news:uDHMgrg4DHA.1816@TK2MSFTNGP12.phx.gbl...
    > What I'm trying to do is Create an ASP.Net app that has both
    > Windows-authenticated users and Anonymous users. The idea is this:
    >
    > When authenticated users attempt to access the site, their credentials are
    > passed to the Request, and I use the DOMAIN\USER value via the AUTH_USER
    > server variable to access their accounts. These people would never have to
    > log in to the app, only their machines on the network.
    >
    > When anonymous users attempt to access the site, they are redirected to a
    > login page, rather than getting the Challenge dialog. Their login is
    > verified against a database and I alter the Current User with a
    > GenericPrincipal object.
    >
    >
    > I tried enabling 'Allow Anonymous Access' in IIS and producing the
    challenge
    > myself with a custom HttpModule, but was unable to make the challenge
    > myself.
    >
    > Then I tried DISabling anonymous access and IIS provided the challenge and
    > the 401 response before it even got to my custom HttpModule.
    >
    >
    > Is there ANY way to acheive what I'm trying to do? Is there some way I can
    > intercept a request before IIS issues a challenge and issue the challenge
    > myself?
    >
    >

    Hernan de Lahitte 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