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 ForumsAuthenticationAuthenticationProblems with AD provider when moving to IIS 7Problems with AD provider when moving to IIS 7
Previous
 
Next
New Post
2/9/2009 10:43 PM
 

Hi,

We are currently mirgrating our production sites to a new server and have just found that we have some issues related to getting the AD provider working as it was before.

Currently we have the sites on:

  • Windows Server 2003 SP2 (Physical server)
  • IIS 6
  • Sql Server 2005 (Mirrored)
  • DNN 4.8.4
  • AD Provider 1.0.4
  • The site is running under an application pool with a domain account
  • Impersonation is not turned on in the web.config
  • Permissions applied to WindowsSignIn.aspx (Only Integrated authentication turned on)

With this configuration everything works perfectly (Auto-login, sync roles etc).

On the new server we have:

  • Windows Server 2008 (VM on an ESX farm)
  • IIS 7
  • DNN, Sql & AD provider as above
  • The site is running under an application pool with a domain account (In classic mode as per documentation)
  • Impersonation is turned on (The impersonation user is the same as the application pool identity)
  • Permissions applied to WindowsSignIn.aspx (IIS manager shows forms & Windows authentication on)

If I visit the site on the new server with the AD provider active, I get an access denied message with this stack trace:

[COMException (0x80070005): Access is denied.]
   System.DirectoryServices.DirectoryEntry.Bind(Boolean throwIfFail) +377678
   System.DirectoryServices.DirectoryEntry.Bind() +36
   System.DirectoryServices.DirectoryEntry.get_IsContainer() +31
   System.DirectoryServices.ChildEnumerator..ctor(DirectoryEntry container) +26
   System.DirectoryServices.DirectoryEntries.GetEnumerator() +25
   DotNetNuke.Authentication.ActiveDirectory.HttpModules.AuthenticationModule.CheckPipelineMode(HttpRequest Request) +94
   DotNetNuke.Authentication.ActiveDirectory.HttpModules.AuthenticationModule.OnAuthenticateRequest(Object s, EventArgs e) +111
   System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +68
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75

If I navigate to WindowsSignIn.aspx directly, I get the windows authentication box and then a screen with the same error as above.

If I turn off AD authentication and login using my domain login to the site & go to the Admin -> Authentication page I get this error at the bottom:

Error: is currently unavailable.
DotNetNuke.Services.Exceptions.ModuleLoadException: Access is denied. ---> System.Runtime.InteropServices.COMException (0x80070005): Access is denied. at System.DirectoryServices.DirectoryEntry.Bind(Boolean throwIfFail) at System.DirectoryServices.DirectoryEntry.Bind() at System.DirectoryServices.DirectoryEntry.get_IsContainer() at System.DirectoryServices.DirectoryEntries.ChildEnumerator..ctor(DirectoryEntry container) at System.DirectoryServices.DirectoryEntries.GetEnumerator() at DotNetNuke.Authentication.ActiveDirectory.Settings.CheckPipelineMode() at DotNetNuke.Authentication.ActiveDirectory.Settings.Page_Load(Object sender, EventArgs e) --- End of inner exception stack trace ---

But I can still enter the credentials required to read from our AD and when I click update it finds the domain without issue.

I've seen posts where people have had similar errors, have tried the suggested solutions but they don't seem to work for me. Any one got any ideas what I might be doing wrong?

Cheers Wayne

 
New Post
2/10/2009 10:53 AM
 

Wayne, what happens if you run the Application Pool under it's default account and just use impersonation in your web.config?

 
New Post
2/10/2009 3:41 PM
 

Thanks for the speedy reply Mike, always much appreciated.

I've made the change so that the application pool is running under network service and haven't had any luck - still getting the same error.

Although if I comment out the authentication http module in the web.config, the site is runs fine & when not logged in redirects to the standard login. Also with it uncommented, if I navigate directly to the windows signin page it logs me in.

Cheers Wayne

 

 
New Post
2/10/2009 5:04 PM
 

Hmmm thanks for the info Wayne. I don't have a Server 2008 install that I can test against (only IIS 7 on Vista) but I'm working on it. Can you send me an email (mhorton@telus.net) with the steps to recreate the problem so that I can track it. That'll be easier than trying to find this post again.

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Provider and Extension ForumsProvider and Extension ForumsAuthenticationAuthenticationProblems with AD provider when moving to IIS 7Problems with AD provider when moving to IIS 7


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