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.
When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:
When I use windows authentication, the login user did not be added to the user list. I login use the domain Administrator user.
So when i view a thread in forums, error occurs:
below code in Thread.aspx.cs
private void Page_Load(object sender, EventArgs e)
SiteUser u = SiteUtils.GetCurrentSiteUser();
this.userID = u.UserId; //Because u is null, so u.UserId error.
I did not find the code to add the windows authentication user to the mp_Users table.
It "should" create a user for you. The relevant code is in Web/Components/AuthHandlerHttpModule.cs, you can step through that code and see what is going wrong. Let me know if you find the problem/solution.
You are right, when i clear the cookies, it is ok.
I try all authentication types, include form authentication、windows authentication、ldap authentication.
I have ever cleared the users from table mp_Users by hand, so when I use back windows authentication again, the ie cookie is already exist, so the user will not be added to the system again.
When read Web/Components/AuthHandlerHttpModule.cs，I clear the cookie, it works!
It is my problem.
Thanks for your help!