We are currently running 4.8.0 with the v.2 beta release of the AD provider on our company intranet. When users are not logged in automatically and use the windows login it is throwing and error Bad Data. This was working in 4.7 just as an FYI and only started with the new AD provider. I guess the first question is why are users that are in the database not getting authenticated and logged in automatically all the time. I did some trouble shooting logged out and was not logged back in automatically. So I deleted all the cookies on the client and did an iisreset and was then logged in automatically.
Here is the error from the events log when logging in manually. I also found anothe error that is occuring when logged in automatically which is below this.
AssemblyVersion: 04.08.00
PortalID: 0
PortalName: EFT Intranet Portal
UserID: -1
UserName:
ActiveTabID: 36
ActiveTabName: EFT Home
RawURL: /EFTHome/tabid/36/ctl/Login/Default.aspx?returnurl=%2fEFTHome%2ftabid%2f36%2fctl%2fLogin%2fDefault.aspx
AbsoluteURL: /Default.aspx
AbsoluteURLReferrer: http://wwwdev.eft.fiserv.net/EFTHome/tabid/36/ctl/Login/Default.aspx?returnurl=%2fEFTHome%2ftabid%2f36%2fctl%2fLogin%2fDefault.aspx
UserAgent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; InfoPath.1)
DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider
ExceptionGUID: e824fc01-939c-4eb7-9854-6584020d1eff
InnerException: Bad Data.
FileName:
FileLineNumber: 0
FileColumnNumber: 0
Method: System.Security.Cryptography.CryptographicException.ThrowCryptogaphicException
StackTrace:
Message: DotNetNuke.Services.Exceptions.PageLoadException: Bad Data. ---> System.Security.Cryptography.CryptographicException: Bad Data. at System.Security.Cryptography.CryptographicException.ThrowCryptogaphicException(Int32 hr) at System.Security.Cryptography.Utils._DecryptData(SafeKeyHandle hKey, Byte[] data, Int32 ib, Int32 cb, Byte[]& outputBuffer, Int32 outputOffset, PaddingMode PaddingMode, Boolean fDone) at System.Security.Cryptography.CryptoAPITransform.TransformFinalBlock(Byte[] inputBuffer, Int32 inputOffset, Int32 inputCount) at System.Security.Cryptography.CryptoStream.FlushFinalBlock() at System.Web.Configuration.MachineKeySection.EncryptOrDecryptData(Boolean fEncrypt, Byte[] buf, Byte[] modifier, Int32 start, Int32 length, Boolean useValidationSymAlgo) at System.Web.Security.MembershipProvider.DecryptPassword(Byte[] encodedPassword) at System.Web.Security.MembershipProvider.UnEncodePassword(String pass, Int32 passwordFormat) at System.Web.Security.SqlMembershipProvider.GetPassword(String username, String passwordAnswer) at System.Web.Security.MembershipUser.GetPassword() 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.Login.WindowsAuthorization(UserLoginStatus& loginStatus, String IP) at DotNetNuke.Authentication.ActiveDirectory.Login.cmdLogin_Click(Object sender, EventArgs e) at System.Web.UI.WebControls.Button.OnClick(EventArgs e) at System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) at System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) --- End of inner exception stack trace ---
Source:
Server Name: TEFT03IS04
1/8/2008 12:29:00 PM Login Success
IP: 10.204.24.17
WindowsAuthentication: True
Server Name: TEFT03IS04
1/8/2008 12:28:58 PM General Exception Error when logged in automatically.
AssemblyVersion: 04.08.00
PortalID: 0
PortalName: EFT Intranet Portal
UserID: -1
UserName:
ActiveTabID: 36
ActiveTabName: EFT Home
RawURL: /Default.aspx
AbsoluteURL: /Default.aspx
AbsoluteURLReferrer:
UserAgent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; InfoPath.1)
DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider
ExceptionGUID: ec6366d8-ece0-44a8-b79e-8a90646a67ab
InnerException: Error processing AD login
FileName:
FileLineNumber: 0
FileColumnNumber: 0
Method: System.Threading.Thread.AbortInternal
StackTrace:
Message: System.Exception: Error processing AD login ---> System.Threading.ThreadAbortException: Thread was being aborted. at System.Threading.Thread.AbortInternal() at System.Threading.Thread.Abort(Object stateInfo) at System.Web.HttpResponse.End() at System.Web.HttpResponse.Redirect(String url, Boolean endResponse) at System.Web.HttpResponse.Redirect(String url) at DotNetNuke.Authentication.ActiveDirectory.HttpModules.AuthenticationModule.OnAuthenticateRequest(Object s, EventArgs e) --- End of inner exception stack trace ---
Source:
Server Name: TEFT03IS04