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 ForumsAuthenticationAuthenticationerrors with AD provider after upgrade to DNN 6.0errors with AD provider after upgrade to DNN 6.0
Previous
 
Next
New Post
8/8/2011 5:30 PM
 
I'm working through a migration from 4.9.x through to 6.0.

I removed the 1.0 provider before i started the migration and then reinstalled the 5.0.2 (and then the 5.0.3 in an attempt to fix the problem).

I had no problems setting up and configuring the provider.

When I try to login via the Windows Login prompt, nothing happens.  No visible Error messages or anything.
I can create new accounts, via the AD provider.  When logging in as a new user, the account is created and logged in.  Then when I log out and log back in, same problem.  Nothing happens, no error message, no login.

However, when I login locally using the portal admin account I can see this in the event log.
Any ideas?

AssemblyVersion: 6.0.0

PortalID: 0

PortalName: xx

UserID: -1

UserName:

ActiveTabID: 36

ActiveTabName: xx

RawURL: /login.aspx?ReturnUrl=%2ftestingcenterhome.aspx&popUp=true

AbsoluteURL: /Default.aspx

AbsoluteURLReferrer: http://testing-migrate/login.aspx?ReturnUrl=%2ftestingcenterhome.aspx&popUp=true

UserAgent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:5.0) Gecko/20100101 Firefox/5.0

DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider

ExceptionGUID: 6da28d43-5d7c-47eb-a173-e2eb796b5f56

InnerException: Value cannot be null. Parameter name: oldPassword

FileName:

FileLineNumber: 0

FileColumnNumber: 0

Method: System.Web.Security.MembershipUser.ChangePassword

StackTrace:

Message: DotNetNuke.Services.Exceptions.PageLoadException: Value cannot be null. Parameter name: oldPassword ---> System.ArgumentNullException: Value cannot be null. Parameter name: oldPassword at System.Web.Security.MembershipUser.ChangePassword(String oldPassword, String newPassword) at DotNetNuke.Security.Membership.AspNetMembershipProvider.ChangePassword(UserInfo user, String oldPassword, String newPassword) at DotNetNuke.Entities.Users.UserController.ChangePassword(UserInfo user, String oldPassword, String newPassword) at DotNetNuke.Authentication.ActiveDirectory.AuthenticationController.RandomizePassword(UserInfo objUser, String& strPassword) at DotNetNuke.Authentication.ActiveDirectory.AuthenticationController.ManualLogon(String UserName, String strPassword, UserLoginStatus& loginStatus, String ipAddress) at DotNetNuke.Authentication.ActiveDirectory.Login.cmdLogin_Click(Object sender, EventArgs e) at System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) --- End of inner exception stack trace ---

Source:

Server Name: xx
 
New Post
8/9/2011 7:35 PM
 

Any ideas from anyone on how to proceed with troubleshooting here?

The AD authentication module is working on several other DNN sites on the same server (windows 2008 R2) with the same settings.  Running single portal per installation.

I have completely removed and readded the module.
I've got a completely fresh web.config to eliminate any problems there from the upgrade process.

This is the only issue preventing us from deploying this website and I'm not sure where to go with this to move forward.



 
New Post
8/9/2011 9:27 PM
 
Well this is new (and odd). What's happening is that when the provider wants to update the password with a random password it's not able to read what the current DotNetNuke password for the user is so it's passing a blank value. Because it's working on on your other sites I can't help but wonder if there's not a problem with the database for this site. I believe the only place in the database that passwords are stored is in the aspnet_Membership table. Mine are encrypted and I'm not sure what's needed to decrypt the passwords manually so I can't help you if yours are the same but if you look at that table is there now blank fields in the password column (I'm not sure what might show up if there is no password).
 
New Post
8/11/2011 1:04 PM
 
Thanks for the reply.

So in order to work on this issue, I have done some more troubleshooting.

I realized that while I have other sites working on this box I dont have other 6.0 sites working on this box.

I installed a fresh 6.0 install, fresh database, no content, no modules, nothing except AD authentication.
I'm getting the exact same error.

AD Users can login ONCE!  User object is created.  Then any subsequent login attempts it will simply sit at the login prompt and do nothing after pressing login.  No error messages to the client.

Server is Windows 2008 R2 (no SP1, installing that tonight)

Here are the messages from the DNN error logs, same as before:

AssemblyVersion: 6.0.0

PortalID: 0

PortalName: SA DNN DEV

UserID: -1

UserName:

ActiveTabID: 55

ActiveTabName: No

RawURL: /login.aspx?ReturnUrl=%2f&popUp=true

AbsoluteURL: /Default.aspx

AbsoluteURLReferrer: http://sa-dnndev/login.aspx?ReturnUrl=%2f&popUp=true

UserAgent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:5.0) Gecko/20100101 Firefox/5.0

DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider

ExceptionGUID: 4466b271-806f-42ba-8ba2-108ab84a3811

InnerException: Value cannot be null. Parameter name: oldPassword

FileName:

FileLineNumber: 0

FileColumnNumber: 0

Method: System.Web.Security.MembershipUser.ChangePassword

StackTrace:

Message: DotNetNuke.Services.Exceptions.PageLoadException: Value cannot be null. Parameter name: oldPassword ---> System.ArgumentNullException: Value cannot be null. Parameter name: oldPassword at System.Web.Security.MembershipUser.ChangePassword(String oldPassword, String newPassword) at DotNetNuke.Security.Membership.AspNetMembershipProvider.ChangePassword(UserInfo user, String oldPassword, String newPassword) at DotNetNuke.Entities.Users.UserController.ChangePassword(UserInfo user, String oldPassword, String newPassword) at DotNetNuke.Authentication.ActiveDirectory.AuthenticationController.RandomizePassword(UserInfo objUser, String& strPassword) at DotNetNuke.Authentication.ActiveDirectory.AuthenticationController.ManualLogon(String UserName, String strPassword, UserLoginStatus& loginStatus, String ipAddress) at DotNetNuke.Authentication.ActiveDirectory.Login.cmdLogin_Click(Object sender, EventArgs e) at System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) --- End of inner exception stack trace ---

Source:

Server Name: SA-WEB1


Here's what the line for that user in the aspnet_Membership table looks like:
e53be025-1bc6-47f4-ac30-edac43b35545 66b55d2b-1b8f-40b9-b946-9dbead015a83 v+ej1f5npzm5555555Od12X1CExT555555Z64ZIcdx3Kx555555lgeskGwuw9zm8K4FT86GI5YUuxJ/ZmfWH 2 wP5555eQPwc555/A5= NULL xxx@uoregon.edu xxx@uoregon.edu NULL NULL True False 2011-08-11 16:43:54.000 2011-08-11 16:43:54.000 2011-08-11 16:43:54.000 1754-01-01 00:00:00.000 0 1754-01-01 00:00:00.000 0 1754-01-01 00:00:00.000 NULL


Here is what the line for that user looks like in the aspnet_users table
e53be025-1bc6-47f4-ac30-edac43b35545 66b55d2b-1b8f-40b9-b946-9dbead015a83 ad\xxx ad\xxx NULL False 2011-08-11 16:43:55.677


Here is the entry from the Users table
3 ad\xxx Mxxx Bxxx False NULL xxx@uoregon.edu Mxxx Bxxx False xxx.171.76.124 False -1 2011-08-11 09:43:54.760 -1 2011-08-11 09:43:56.197


Is there any other information I can give you that might help you to pinpoint the cause.
I notice there is one other thread that is complaining about this similar problem - users can login once, then cannot login again.


Again, the server is WIndows 2008 R2 Standard, no service pack 1
Sites application pools are running in ASP.NET 4.0, integrated mode

AD authentication does work with 5.06.03 sites using the 5.0.2 provider on the same machine.

 
New Post
8/11/2011 1:09 PM
 
oh and also here is the entry in the DNN log for when the new user is created, if this is any help

logdetail: <ADUserInfo><AffiliateID>-1</AffiliateID><DisplayName>Mxxx Bxxx</DisplayName><Email>xxx@uoregon.edu</Email><FirstName>Mxxx</FirstName><IsDeleted>false</IsDeleted><IsSuperUser>false</IsSuperUser><LastName>Bxxx</LastName><Membership><Approved>true</Approved><CreatedDate>0001-01-01T00:00:00</CreatedDate><IsDeleted>false</IsDeleted><IsOnLine>false</IsOnLine><LastActivityDate>0001-01-01T00:00:00</LastActivityDate><LastLockoutDate>0001-01-01T00:00:00</LastLockoutDate><LastLoginDate>2011-08-11T09:43:54.1443927-07:00</LastLoginDate><LastPasswordChangeDate>0001-01-01T00:00:00</LastPasswordChangeDate><LockedOut>false</LockedOut><Password>xxxxxxx</Password><UpdatePassword>false</UpdatePassword></Membership><PortalID>0</PortalID><Profile><Cell /><City /><Country /><Fax /><FirstName>Mxxx</FirstName><IM /><LastName>Bxxx</LastName><Photo /><PostalCode /><PreferredLocale>en-US</PreferredLocale><ProfileProperties><ProfilePropertyDefinition><length>50</length><propertycategory>Name</propertycategory><propertyname>Prefix</propertyname></ProfilePropertyDefinition><ProfilePropertyDefinition><length>50</length><propertycategory>Name</propertycategory><propertyname>FirstName</propertyname></ProfilePropertyDefinition><ProfilePropertyDefinition><length>50</length><propertycategory>Name</propertycategory><propertyname>MiddleName</propertyname></ProfilePropertyDefinition><ProfilePropertyDefinition><length>50</length><propertycategory>Name</propertycategory><propertyname>LastName</propertyname></ProfilePropertyDefinition><ProfilePropertyDefinition><length>50</length><propertycategory>Name</propertycategory><propertyname>Suffix</propertyname></ProfilePropertyDefinition><ProfilePropertyDefinition><length>50</length><propertycategory>Address</propertycategory><propertyname>Unit</propertyname></ProfilePropertyDefinition><ProfilePropertyDefinition><length>50</length><propertycategory>Address</propertycategory><propertyname>Street</propertyname></ProfilePropertyDefinition><ProfilePropertyDefinition><length>50</length><propertycategory>Address</propertycategory><propertyname>City</propertyname></ProfilePropertyDefinition><ProfilePropertyDefinition><length>0</length><propertycategory>Address</propertycategory><propertyname>Region</propertyname></ProfilePropertyDefinition><ProfilePropertyDefinition><length>0</length><propertycategory>Address</propertycategory><propertyname>Country</propertyname></ProfilePropertyDefinition><ProfilePropertyDefinition><length>50</length><propertycategory>Address</propertycategory><propertyname>PostalCode</propertyname></ProfilePropertyDefinition><ProfilePropertyDefinition><length>50</length><propertycategory>Contact Info</propertycategory><propertyname>Telephone</propertyname></ProfilePropertyDefinition><ProfilePropertyDefinition><length>50</length><propertycategory>Contact Info</propertycategory><propertyname>Cell</propertyname></ProfilePropertyDefinition><ProfilePropertyDefinition><length>50</length><propertycategory>Contact Info</propertycategory><propertyname>Fax</propertyname></ProfilePropertyDefinition><ProfilePropertyDefinition><length>50</length><propertycategory>Contact Info</propertycategory><propertyname>Website</propertyname></ProfilePropertyDefinition><ProfilePropertyDefinition><length>50</length><propertycategory>Contact Info</propertycategory><propertyname>IM</propertyname></ProfilePropertyDefinition><ProfilePropertyDefinition><length>0</length><propertycategory>Preferences</propertycategory><propertyname>Photo</propertyname></ProfilePropertyDefinition><ProfilePropertyDefinition><length>0</length><propertycategory>Preferences</propertycategory><propertyname>Biography</propertyname></ProfilePropertyDefinition><ProfilePropertyDefinition><length>0</length><propertycategory>Preferences</propertycategory><propertyname>PreferredTimeZone</propertyname></ProfilePropertyDefinition><ProfilePropertyDefinition><length>0</length><propertycategory>Preferences</propertycategory><propertyname>TimeZone</propertyname></ProfilePropertyDefinition><ProfilePropertyDefinition><length>0</length><propertycategory>Preferences</propertycategory><propertyname>PreferredLocale</propertyname></ProfilePropertyDefinition></ProfileProperties><Region /><Street /><Telephone>5413461130</Telephone><Unit /><Website /></Profile><RefreshRoles>false</RefreshRoles><Roles /><UserID>3</UserID><Username>ad\xxx</Username><GUID>cb1c118637b636479dd52a314c17ee22</GUID><Location>ad.uoregon.edu</Location><AuthenticationExists>true</AuthenticationExists><CName>xxx</CName><PrincipalName>xxx@ad.uoregon.edu</PrincipalName><DistinguishedName>CN=xxx,OU=Managed,OU=Users,OU=SA,OU=Units,DC=ad,DC=uoregon,DC=edu</DistinguishedName><sAMAccountName>xxx</sAMAccountName></ADUserInfo>

Server Name: SA-WEB1

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Provider and Extension ForumsProvider and Extension ForumsAuthenticationAuthenticationerrors with AD provider after upgrade to DNN 6.0errors with AD provider after upgrade to DNN 6.0


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