Products

Solutions

Resources

Partners

Community

About

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 ForumsAuthenticationAuthenticationDNN 7+ DirectoryEntry.Bind() failedDNN 7+ DirectoryEntry.Bind() failed
Previous
 
Next
New Post
1/13/2014 2:19 PM
 

I have been having some difficulties with Active Directory authentication on our 2008 R2 IIS 7.5 webserver for a while, and was hopeful someone might have some ideas.

We are running the following set up:

 DNN 7.0.6
AD Module 5.0.5
Windows Server 2008 R2, IIS 7.5

 The issue: In DNN 7.x sites when Windows Auth is enabled going to the login module fails with a "Invalid username or password" error. In the event log I receive an error that looks like this:

 

Method: System.DirectoryServices.DirectoryEntry.Bind

StackTrace:

Message: System.DirectoryServices.DirectoryServicesCOMException (0x80072020): An operations error occurred. at System.DirectoryServices.DirectoryEntry.Bind(Boolean throwIfFail) at System.DirectoryServices.DirectoryEntry.Bind() at System.DirectoryServices.DirectoryEntry.get_AdsObject() at System.DirectoryServices.PropertyValueCollection.PopulateList() at System.DirectoryServices.PropertyValueCollection..ctor(DirectoryEntry entry, String propertyName) at System.DirectoryServices.PropertyCollection.get_Item(String propertyName) at DotNetNuke.Authentication.ActiveDirectory.ADSI.Domain.PopulateInfo() at DotNetNuke.Authentication.ActiveDirectory.ADSI.Domain..ctor(String Path) at DotNetNuke.Authentication.ActiveDirectory.ADSI.Domain.GetDomain(String Path, String UserName, String Password, AuthenticationTypes AuthenticationType) at DotNetNuke.Authentication.ActiveDirectory.ADSI.Domain.PopulateChild(Domain Domain) at DotNetNuke.Authentication.ActiveDirectory.ADSI.Domain..ctor(String Path, String UserName, String Password, AuthenticationTypes AuthenticationType) at DotNetNuke.Authentication.ActiveDirectory.ADSI.Domain.GetDomain(String Path, String UserName, String Password, AuthenticationTypes AuthenticationType) at DotNetNuke.Authentication.ActiveDirectory.ADSI.Utilities.GetRootDomain()

 

 

What is strange as well is that we have an older site running 4.9.5 of DNN that I had to migrate to this new server last week due to an issue. I receive a similar issue when trying to login with that site (errors below). Interestingly, I have a couple other of these older sites on the same server that run just fine. 

Method: DotNetNuke.Authentication.ActiveDirectory.ADSI.ADSIProvider.GetUser
StackTrace:
Message: System.NullReferenceException: Object reference not set to an instance of an object. at DotNetNuke.Authentication.ActiveDirectory.ADSI.ADSIProvider.GetUser(String LoggedOnUserName, String LoggedOnPassword)

 

 Method: System.DirectoryServices.DirectoryEntry.Bind
StackTrace:
Message: System.DirectoryServices.DirectoryServicesCOMException (0x80072020): An operations error occurred. at System.DirectoryServices.DirectoryEntry.Bind(Boolean throwIfFail) at System.DirectoryServices.DirectoryEntry.Bind() at System.DirectoryServices.DirectoryEntry.get_AdsObject() at System.DirectoryServices.PropertyValueCollection.PopulateList() at System.DirectoryServices.PropertyValueCollection..ctor(DirectoryEntry entry, String propertyName) at System.DirectoryServices.PropertyCollection.get_Item(String propertyName) at DotNetNuke.Authentication.ActiveDirectory.ADSI.Domain.PopulateInfo() at DotNetNuke.Authentication.ActiveDirectory.ADSI.Domain..ctor(String Path) at DotNetNuke.Authentication.ActiveDirectory.ADSI.Domain.GetDomain(String Path, String UserName, String Password, AuthenticationTypes AuthenticationType) at DotNetNuke.Authentication.ActiveDirectory.ADSI.Domain.PopulateChild(Domain Domain) at DotNetNuke.Authentication.ActiveDirectory.ADSI.Domain..ctor(String Path, String UserName, String Password, AuthenticationTypes AuthenticationType) at DotNetNuke.Authentication.ActiveDirectory.ADSI.Domain.GetDomain(String Path, String UserName, String Password, AuthenticationTypes AuthenticationType) at DotNetNuke.Authentication.ActiveDirectory.ADSI.Utilities.GetRootDomain()


I would appreciate any ideas anyone has.

Thank you!

 

 
New Post
1/13/2014 3:29 PM
 
I think I figured out the issue! I've been stuck on this a while so maybe posting helped :) . For whatever reason changing the format of the root domain from dc=xxx,dc=xxx,dc=xxx to
LDAP://xxx.xxx.xxx.xxx/DC=xx,DC=xxx,DC=xxx. I am not sure why a few of my other sites continue to work with the old root domain string while these ones didn't.

Still have the issue with the window pop up... but that may be an issue for a different thread.
 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Provider and Extension ForumsProvider and Extension ForumsAuthenticationAuthenticationDNN 7+ DirectoryEntry.Bind() failedDNN 7+ DirectoryEntry.Bind() failed


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