ASP/NTLM and ASP.Net/Forms authentication incapatability

From: Ray Johnson (rayj_at_keen.com)
Date: 08/28/03


Date: 28 Aug 2003 10:11:33 -0700


We have a largish internal site written in ASP that we are trying to
move to ASP.Net. We also want to move from NTLM authentication to
Forms authentication. The site is mostly ASP with a vdir that
contains all the ASP.Net code. For the authentication the website is
configured with anonymous=false, NTLM=true while the vdir is
configured with anonymous=true, NTLM=false.

This work great if you go the ASP.Net code directly or the ASP code
directly. However, if you go to the ASP code first and then attempt
to navigate to the ASP.Net code (same browser/session) then login to
the ASP.Net portion fails.

It appears that because the user/session was already authenticated via
NTLM the standard code for authentication fails for ASP.Net/Forms.
The symptom we see is that the after submitting the login page it
simply loops back to the login page with out ever running the POST for
the login.

Does anyone have a clue how to work around this problem? We really
need to have both mechanisms working as it will take us some time to
port the entire set of applications. We could put the ASP.Net tools
on a different site - but that would be really painful as all licks
would need to become absolute references.

Any help would be greatly appriciated.

Ray Johnson



Relevant Pages

  • Re: ADSI Authentication using ASP - Problem
    ... ASP application over the web. ... "Basic Authentication" enabled. ... Dim oRootDSE As IADs ... strPassword As String, strUserADSPath As String ...
    (microsoft.public.inetserver.iis.security)
  • Re: Can LDAP API be used either from VB or VBScript ?
    ... I don't believe your ASP example will work. ... the users will open a web browser and login ... > The user is logging into a Windows box whose's domain is setup to do LDAP ... > There is no link between both authentication systems. ...
    (microsoft.public.vb.general.discussion)
  • Re: Cant make a domain user the "anonymous access" user
    ... I have tried both with and without Integrated authentication enabled. ... I get a login prompt if I am using an NTLM-capable ... I can then authenticate using the domain account ... Pool containing this ASP page ...
    (microsoft.public.inetserver.iis.security)
  • Re: Newbie Needs Help!
    ... >> based authentication via SQL Server for a section of our corporate web ... >> I know classic ASP quite well, but the ASP .NET world is very different. ... >> Will IIS 5.0 support ASP .Net's built in methods for the integrated form ... > You can map the aspnet ISAPI dll to these other file extensions in IIS, ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: ASP using ADSI
    ... I'm using ASP because I know nothing of .net. ... My environment is an NT4 domain that is being migrated to W2K3 AD domain. ... Now the issues revolve around authentication. ... When you say you set up a service account, ...
    (microsoft.public.windows.server.active_directory)