Active Directory My account Issue

This is the place to report bugs and get support. When posting in this forum, please always provide as much detail as possible.

Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum, do not report it as a bug.

This is the place to report bugs and get support

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.
Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum.
This thread is closed to new posts. You must sign in to post in the forums.
11/3/2010 2:49:47 PM
Gravatar
Total Posts 75

Active Directory My account Issue

Joe I noticed a problem when attempting to configure a user account (on their behalf) this user is a member of our AD (Customer) group which has limited access to our mojoportal site - when the email is populated it is done from AD (this is ok - seperate Issue - it would be nice to have an option for this to not populate with the username@FQDN) when I changed this from username@FQDN to their actual email address I got a server error message and found the following in the log

2010-11-03 15:43:38,917 ERROR mojoPortal.Web.mojoBasePage - 126.68.9.201-en-US - /supportportal/Secure/UserProfile.aspx
System.NullReferenceException: Object reference not set to an instance of an object.
at mojoPortal.Web.UI.Pages.UserProfile.PopulateControls()
at mojoPortal.Web.UI.Pages.UserProfile.Page_Load(Object sender, EventArgs e)
at System.Web.UI.Control.OnLoad(EventArgs e)
at mojoPortal.Web.mojoBasePage.OnLoad(EventArgs e)
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
2010-11-03 15:43:38,917 ERROR mojoPortal.Web.Global - 126.68.9.201-en-US - /supportportal/Secure/UserProfile.aspx
System.NullReferenceException: Object reference not set to an instance of an object.
at mojoPortal.Web.UI.Pages.UserProfile.PopulateControls()
at mojoPortal.Web.UI.Pages.UserProfile.Page_Load(Object sender, EventArgs e)
at System.Web.UI.Control.OnLoad(EventArgs e)
at mojoPortal.Web.mojoBasePage.OnLoad(EventArgs e)
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

Any ideas what could be causing this? Something on my end if so let me know?

Thanks as always

Al 

11/3/2010 3:50:53 PM
Gravatar
Total Posts 18439

Re: Active Directory My account Issue

Hi Al,

If you changed their user name while they were logged in or if they had the remember me checked when they logged in last it could cause this error. Basically the cookie says they are authenticated but it does not match any user so it throws a null reference exception because the user is null.

If the user clears their cookies and logs in again all should be well.

Hope that helps,

Joe

11/4/2010 7:56:37 AM
Gravatar
Total Posts 75

Re: Active Directory My account Issue

Joe 

Thanks for the response but my scenario was a little different to what you were outlining. We (our company) are generating the accounts in AD (new user) when the user logs in (I actually logged in without remember me checked as the user in this case which is why I noted the error) went straight to the my account page the only operation performed was that of changing the users email address to their correct email (not a member of our company) as the accounts are generated with username@FQDN (ourcompany) so I changed it to usersemail@userscompany this is were I saw the error message no username was changed (its locked down due to using Active Directory).

Is the email address somehow linked to the user configuration under the mojoportal AD authentication scenario?

If you need additional details let me know

Best Regards

Al

11/11/2010 8:44:19 AM
Gravatar
Total Posts 18439

Re: Active Directory My account Issue

Hi Al,

With some help from Jamie Eubanks, I was able to track down this issue so it will be fixed in the next release.

However, my previous advice should solve it, the problem is it is setting an incorrect new authentication cookie (which it should not do in the case of ldap so it is a bug) after you change the email. Logging out and logging in again or clearing the cookies and logging in again should solve it.

Best,

Joe

11/11/2010 8:47:02 AM
Gravatar
Total Posts 75

Re: Active Directory My account Issue

Joe

Many thanks to you and Jamie for reviewing this and your hard work in fixing it 

Al

You must sign in to post in the forums. This thread is closed to new posts.