DNNCommunity / DNN.ActiveDirectory

Active Directory authentication for DNN
MIT License
26 stars 22 forks source link

Getting "password incorrect" errors for every (successful) AD Login #39

Closed thosalbert closed 5 years ago

thosalbert commented 6 years ago

Hi, I have AD authentication with auto login working on an intranet website. The auto log in appears to be working fine, but when I look at the admin logs, I see that for every "Login Success" there are three General Exceptions generated at the same time. The URL is the WindowsSignin.aspx page, and the error message is: "The username or password is incorrect". Any idea what is going on to cause this? Again, the log in seems to work fine (the user doesn't see the error), but the errors show in the Admin log. So there are a huge amount of errors there.

(This is not to be confused with my other question about using AD Authentication on multiple portals, which I am trying to get to work on a different test server) .

Thanks for any insight into this.

Tom

Here's the error: AbsoluteURL:/DesktopModules/AuthenticationServices/ActiveDirectory/WindowsSignin.aspx DefaultDataProvider:DotNetNuke.Data.SqlDataProvider, DotNetNuke ExceptionGUID:f617a3e0-14c9-40f9-85b2-8256fb0a6b3d AssemblyVersion: PortalId:-1 UserId:-1 TabId:-1 RawUrl: Referrer: UserAgent: ExceptionHash:yTkxsR/IDapJeM6viuW1ux625Es= Message:The user name or password is incorrect. StackTrace: 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, 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() InnerMessage: InnerStackTrace: Source:System.DirectoryServices FileName: FileLineNumber:0 FileColumnNumber:0 Method: Server Name: SCZAS51

sawest commented 6 years ago

I will troubleshoot it as soon as I get time. I am sure this would fill a log quickly.

thosalbert commented 6 years ago

Thanks very much!

sawest commented 6 years ago

Please install v6.00.08 to see if this is fixed. Please report your results here. Thanks!

thosalbert commented 6 years ago

I tried this out for the other (multiple portals) problem, and commented on that thread.

I will try installing this to my live site to see if it solved the log in errors issue.

thanks again

thosalbert commented 6 years ago

Hi again, I installed version 6.00.08 , and I'm still getting the same problem, three errors (sometimes more) for every successful log-in. So, no luck so far.

Thanks for your efforts. I appreciate it! Tom

thosalbert commented 6 years ago

Just checking back, as I'm still having this issue consistently on the site. Let me know if there is anything else I can try.

Thanks

Tom

sawest commented 6 years ago

Sorry, been wrapped up at work. Havent had a change to dig into but will as soon as I get free time.

thosalbert commented 6 years ago

Thanks for the response! This isn't causing me real trouble beyond filling up the logs.

I'm still curious about the multi portal issue as well (my other thread here) - I'm going to refresh our test sever and try that again from scratch.

I appreciate your effort, whenever you have time. Thanks again

sawest commented 6 years ago

I made some changes to password randomization in release 6.1.2. Please try this version at your earliest convenience as I believe it will correct this issue.