RE: Authenticating againts localhost (and another question)

From: richlm (rich_lm_at_h0tmai1.com)
Date: 02/27/04

  • Next message: Mithun: "httpcontext"
    Date: Fri, 27 Feb 2004 01:41:07 -0800
    
    

    Q1...
    Probably the best approach with forms auth is to put your login.aspx page in a SSL protected folder, and leave the rest of your app outside of SSL. This way your credentials will be protected.

    Your web.config might include something like this:
    <authentication mode="Forms"><forms loginUrl="Restricted\login.aspx" Login page in an SSL protected folder
             protection="All" Privacy and integrity
             requireSSL="true" Prevents cookie being sent over http
             timeout="10" Limited session lifetime
             name="AppNameCookie" Unique per-application name
             path="/FormsAuth" and path
             slidingExpiration="true" > Sliding session lifetime
      </forms></authentication>

    I guess you could implement the code to encrypt just the password, but for it to be secure you would have to do pretty much the same as SSL with key exchange and all that - above approach is a much simpler solution.

    Here's a link to a KB article that describes it in more detail:
    http://support.microsoft.com/default.aspx?scid=kb;EN-US;813829

    Q2...
    You should be able to do this by calling the (unmanaged) Win32 API function LogonUser() - passing "." for the domainname parameter. This has some serious security consequences though - there may be a better approach for local accounts.


  • Next message: Mithun: "httpcontext"

    Relevant Pages

    • Re: ASP.NET 2.0 AD authentication
      ... You just enable Basic auth in IIS, disable anonymous, enable SSL and enable ... Windows auth in ASP.NET. ... >> Would you consider using Basic authentication with SSL? ...
      (microsoft.public.dotnet.security)
    • RE: sps03 doc lib
      ... authentication (since firewall may block windows integrated auth.). ... better to have ssl to protect your information. ...
      (microsoft.public.sharepoint.portalserver)
    • Re: AD SSL, what impact?
      ... We use external certs with our DCs and it isn't that big of a deal. ... running with SSL LDAP using a self-signed cert we generated with selfssl.exe ... SSL LDAP traffic will naturally be a little slower than unencrypted traffic, ... If your app uses Microsoft's LDAP APIs, then you ...
      (microsoft.public.windows.server.active_directory)
    • SSL - How-to?`
      ... We have several apps, we ONLY want ONE app being set to SSL. ... I tried the internal IIS version on my client XP PC as well. ... certificate. ...
      (microsoft.public.dotnet.framework.aspnet)
    • Web site calls Web site ?
      ... I am using Form Auth. ... It is also SSL ... After a user successfully logon to my site, s/he will push a Button, this ... The listener page in my site is also protected by the ...
      (microsoft.public.dotnet.framework.aspnet.security)