Hey folks,
I just upgraded to DNN 4.3.2. I have DNN setup to do AD authentication, and in the past I'd just use the Windows login prompt. Well, from some reason I thought I would try and use the form instead - in the past, it just gave me a bad username/password - but I just thought I'd try again since it's the new version.
Anyways, I used my network credentials, and almost worked! It did recognize the username, but for some reason couldn't validate the password.
Anybody have any idea what it would throw this kind of exception? (I purged my cookies and tried again, same results.)
Server Error in '/' Application.
Bad Data.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Security.Cryptography.CryptographicException: Bad Data.
Source Error:
Line 319: ' update DNN password to match with authenticated password from AD
Line 320: If objUser.Membership.Password <> txtPassword.Text Then
Line 321: UserController.ChangePassword(objUser, objUser.Membership.Password, txtPassword.Text)
Line 322: End If
Line 323: _userID = objUser.UserID
|
Source File: D:\Websites\DotNetNuke\Website\Admin\Security\Signin.ascx.vb Line: 321
Stack Trace:
[CryptographicException: Bad Data.
]
System.Security.Cryptography.CryptographicException.ThrowCryptogaphicException(Int32 hr) +33
System.Security.Cryptography.Utils._DecryptData(SafeKeyHandle hKey, Byte[] data, Int32 ib, Int32 cb, Byte[]& outputBuffer, Int32 outputOffset, PaddingMode PaddingMode, Boolean fDone) +0
System.Security.Cryptography.CryptoAPITransform.TransformFinalBlock(Byte[] inputBuffer, Int32 inputOffset, Int32 inputCount) +319
System.Security.Cryptography.CryptoStream.FlushFinalBlock() +30
System.Web.Configuration.MachineKeySection.EncryptOrDecryptData(Boolean fEncrypt, Byte[] buf, Byte[] modifier, Int32 start, Int32 length, Boolean useValidationSymAlgo) +154
System.Web.Security.MembershipProvider.DecryptPassword(Byte[] encodedPassword) +107
System.Web.Security.MembershipProvider.UnEncodePassword(String pass, Int32 passwordFormat) +100
System.Web.Security.SqlMembershipProvider.GetPassword(String username, String passwordAnswer) +185
System.Web.Security.MembershipUser.GetPassword() +78
DotNetNuke.Security.Membership.AspNetMembershipProvider.ChangePassword(UserInfo user, String oldPassword, String newPassword) +52
DotNetNuke.Entities.Users.UserController.ChangePassword(UserInfo user, String oldPassword, String newPassword) +40
DotNetNuke.Modules.Admin.Security.Signin.WindowsAuthorization(UserLoginStatus& loginStatus) in D:\Websites\DotNetNuke\Website\Admin\Security\Signin.ascx.vb:321
DotNetNuke.Modules.Admin.Security.Signin.cmdLogin_Click(Object sender, EventArgs e) in D:\Websites\DotNetNuke\Website\Admin\Security\Signin.ascx.vb:444
System.Web.UI.WebControls.Button.OnClick(EventArgs e) +105
System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +107
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +7
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +11
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +174
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5102
[PageLoadException: Bad Data.
]
DotNetNuke.Services.Exceptions.Exceptions.ProcessPageLoadException(Exception exc, String URL) +354
DotNetNuke.Framework.PageBase.Page_Error(Object Source, EventArgs e) +377
System.Web.UI.TemplateControl.OnError(EventArgs e) +105
System.Web.UI.Page.HandleError(Exception e) +73
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +6944
System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +154
System.Web.UI.Page.ProcessRequest() +86
System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context) +18
System.Web.UI.Page.ProcessRequest(HttpContext context) +49
ASP.default_aspx.ProcessRequest(HttpContext context) +29
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +154
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +64
|
Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.42