Choosing Integrated vs. Forms authentication dynamically

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

  1. #1

    Default Choosing Integrated vs. Forms authentication dynamically

    I'd like to have my (intranet) application's users choose to use their NT
    Login account credentials or specify another UserID/password combo on the
    app's login page. Is this possible? So far, I've only seen ASP.NET examples
    where you have either integrated Windows authentication OR Forms specified
    in webconfig.xml.

    Use a custom HTTPHandler or HTTPModule?

    If anyone can paint a simple picture of how this can be done I'd appreciate
    it.


    Rob Blitz Guest

  2. Similar Questions and Discussions

    1. Query AD using Integrated Authentication?
      You don't have a password with integrated auth, so essentially, you are trying to do a bind with a username and a blank password. That won't work...
    2. .NET, Integrated Windows Authentication, and more
      First of all, with identity impersonate = true, I still get this blasted error: Exception Details: System.Data.SqlClient.SqlException: Login failed...
    3. Integrated Authentication Issue
      I have a web application using asp.net that uses integrated windows authentication. One of our users changed their windows login information. ...
    4. Integrated Authentication with Novell?
      Does anybody know if there is a way to do integrated authentication using Novell. bill
    5. integrated Windows authentication
      Firstly, I'm running IIS 6.0 on Windows SErver 2003 that is also a DC. I have an asp page (default.asp) I am trying to access as my hom page for...
  3. #2

    Default RE: Choosing Integrated vs. Forms authentication dynamically

    Hi Rob,

    I think you may make the user make the choice on the login form. For
    example, there are two options: 1. with default windows account; 2, specify
    a special windows account with name and password. On server side, you can
    get the informaiton from login form and authenticate the credential. For
    detailed information, you may refer to this KB article:

    HOW TO: Authenticate against the Active Directory by Using Forms
    Authentication and Visual Basic .NET
    [url]http://support.microsoft.com/default.aspx?kbid=326340[/url]

    Hope this help,


    Luke
    Microsoft Online Support

    Get Secure! [url]www.microsoft.com/security[/url]
    (This posting is provided "AS IS", with no warranties, and confers no
    rights.)

    MSFT Guest

  4. #3

    Default Re: Choosing Integrated vs. Forms authentication dynamically

    Luke,
    Thanks for the response.

    So I would create a form that had, say, an "auto login" button that says
    something like "Login as user logged into this machine" and right below it
    would be the second alternative, which would be a form with inputs fields
    for user id and password with a button that says "Login as another user".
    The second alternative allows me to go to a coworkers workstation where they
    were logged in, and login as myself rather than using their NT logon token.

    Now, I have to choose windows OR forms authentication in web.config; I can't
    use both. If I do as the KB article suggests, I use forms authentication.
    But if I do this, my "auto login" button won't work. What I'm really after
    here is a way to allow a user to not have to input their user id and
    password if they are already logged in on that machine while at the same
    time, allowing users to do an explicit authentication as any user.

    I've seen this done in MS Project Server's web interface.

    Rob


    "MSFT" <lukezhan@online.microsoft.com> wrote in message
    news:pdlb1gulDHA.576@cpmsftngxa06.phx.gbl...
    > Hi Rob,
    >
    > I think you may make the user make the choice on the login form. For
    > example, there are two options: 1. with default windows account; 2,
    specify
    > a special windows account with name and password. On server side, you can
    > get the informaiton from login form and authenticate the credential. For
    > detailed information, you may refer to this KB article:
    >
    > HOW TO: Authenticate against the Active Directory by Using Forms
    > Authentication and Visual Basic .NET
    > [url]http://support.microsoft.com/default.aspx?kbid=326340[/url]
    >
    > Hope this help,
    >
    >
    > Luke
    > Microsoft Online Support
    >
    > Get Secure! [url]www.microsoft.com/security[/url]
    > (This posting is provided "AS IS", with no warranties, and confers no
    > rights.)
    >

    Rob Blitz Guest

  5. #4

    Default Re: Choosing Integrated vs. Forms authentication dynamically

    Hi Rob,

    I think you may choose Form authentication only. When user choose "auto
    login", you can get his account from Request object's ServerVariables
    Property and its IsAuthenticated property.

    On IIS virtual folder, you can set integrated windows authentication; In
    web.config, you can set form authentication.

    Luke
    Microsoft Online Support

    Get Secure! [url]www.microsoft.com/security[/url]
    (This posting is provided "AS IS", with no warranties, and confers no
    rights.)

    MSFT 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