Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDNN Open Source...DNN Open Source...Provider and Extension ForumsProvider and Extension ForumsAuthenticationAuthenticationredirect loop DNN6 Windows authredirect loop DNN6 Windows auth
Previous
 
Next
New Post
5/23/2012 12:06 PM
 

Currently running: DNN 6.01.05, DNN_ActiveDirectory 5.0.4, Server 2008, IIS 7.5, Classic pipeline, App Pool uses Network Service and all permissions set for that user.

We moved our DNN install (then v5) to Server 2008/IIS7.5.  Found out that new users added to Active Directory weren't being added to DNN causing them to get in a redirect loop.  If you added them manually to DNN everything was fine.

I upgraded DNN thinking this might be a solution, but I'm still having the issue where a new user cannot login causing a 302 redirect loop. This has been well covered but no solution has worked for me.  I've read the documentation so many times I have it memorized.

I want the website to prompt for a username/pass through IIS where they enter their domain credentials and the user automatically gets added to DNN and they are logged in.  This worked before on Server 2003 and DNN 5.

I currently have IIS set up to do Windows Authentication on the entire site.  Impersonation is on using a domain admin account, but it seems to not matter if this is on or off.  No forms auth is set anywhere.  I don't want it to go to WindowsSignIn.aspx as I don't want the user to have to enter credentials  
twice.

Any setting I change doesn't matter, it's almost like DNN it isn't even using the AD authentication.  IIS will prompt and you enter your credentials then if you aren't in the DNN table (and new users aren't) then it just throws them in a redirect loop to default.aspx.  I'm sure it's just some IIS7 or Server 2008 permissions or configuration that's messed up, but so far none of the solutions in the forum or documentation have worked.

Any help is appreciated, I've been working on this issue since January and manually adding every user that comes to our organization so they can access the intranet.

Thanks,

Erika

 
New Post
5/23/2012 5:36 PM
 

If you've got Windows Authentication turned on for the whole site you're basically defeating the purpose of the AD Provider (Windows authentication on a website setup to use Forms authentication) and are trying to use the IIS/ASP.NET built-in Windows Authentication.

Theoretically, with your setup, you could uninstall the AD provider and your users would get logged in (as the provider isn't needed in your case). How much information DNN would pull into the database is unknown (I haven't tried it in years).

So, my question is, why can't you set up the site as per the documentation? Is there a company policy against the site using Forms Authentication and having Windows Authentication on windowssignin.aspx only or is there another reason?
 
New Post
5/24/2012 9:22 AM
 

Thanks for your response Mike.

It is a company policy that we use IIS authentication on this server since it is publicly accessible so the site has always been set up that way.  It has been working for 3 years now and just stopped when we moved to server 2008/IIS7.

I guess I'll have to see if we can get around our security protocols and set it up per the documentation. I just thought there might be a permissions thing to make this work with 2008/IIS7 like it did with 2003/IIS6.

Thanks,

Erika

 
New Post
5/24/2012 10:51 AM
 
There may very well be a permission setting that'll work. There's two versions of Server 2008 (regular 2008 and 2008R2). R2 is much more forgiving permissions wise as you can see in the 1st and 3rd pinned post in this forum. You might want to take a look at the IIS 7.x Trace feature. It might give you a clue as to why you're getting stuck in a loop.

Another thing you could try (I don't know if you've already tried it or not)
And, unless you need it for another reason, you might want to switch from classic pipeline to integrated and commenting out all instances your web.config. You mentioned in your initial post that you didn't want your users redirected to WindowsSignin.aspx. This will prevent that but even if they still were the 5.0.4 release of the provider does work under the integrated pipeline (with a couple of extra commands entered on the server itself).

If you have access to a separate 2008 server (either physical or virtual) I'd do my testing on that until you got to the point that it works and then make the changes on your actual production server.
 
New Post
5/24/2012 1:00 PM
 

Thanks for your help Mike, I ended up installing from scratch on a test server and got it working.

Apparently I can't read and was confusing Anonymous Authentication with ASP.NET Impersonation.  Once I Enabled Anonymous Authentication on the site and removed the location piece from web.config 

<location path="DesktopModules/AuthenticationServices/ActiveDirectory/WindowsSignin.aspx">

    <!-- Disable Forms Authentication -->
    <formsAuthenticationWrapper enabled="false" />
    <system.webServer>
      <security>
        <!-- Enable IIS Windows authentication for the login page -->
        <authentication>
          <windowsAuthentication enabled="true" />
          <anonymousAuthentication enabled="false" />
        </authentication>
      </security>
    </system.webServer>
  </location>

it's all working as expected.

Erika

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Provider and Extension ForumsProvider and Extension ForumsAuthenticationAuthenticationredirect loop DNN6 Windows authredirect loop DNN6 Windows auth


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out