Automatic Registration of Users running Windows XP.

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

Please do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.

This forum is for discussing mojoPortal development

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

You can monitor commits to the repository from this page. We also recommend developers to subscribe to email notifications in the developer forum as occasionally important things are announced.

Before posting questions here you might want to review the developer documentation.

Do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.
This thread is closed to new posts. You must sign in to post in the forums.
6/4/2007 3:06:18 AM
Gravatar
Total Posts 23

Automatic Registration of Users running Windows XP.

I have come across a unique issue on Windows XP.

Scenario occurs when an XP users visits the intranet site fo the first time.

The mp_insertusers sp dosen't get fired automatically.

This works perfectly fine for users running windows 2000 for a new users. Registration happens automatically calling the relevant sp to insert the users details.

Also for users running Windows XP, sometimes they are prompted for their windows userid and pwd although windows authentication is enabled and enable anonymous access is checked.

I would like to know at what point is the check happening or where exactly is the check happening in the code to check if the user already exists in the mp_users table.

And if not, then where exactly is the insert users sp being called.

Where exactly are these checks happening and where are the users pwds getting encrypted. Are these encrypted pwds the actual windows pwds for users or randomly generated encrypted pwds.

Any help would be greatly appreciated.

6/4/2007 6:24:10 AM
Gravatar
Total Posts 18439

Re: Automatic Registration of Users running Windows XP.

Hi,

The Application_AuthenticateRequest event in the global.asax.cs is the event where users would be automatically created. This event fires the first time the user requests a page that is secured by roles.

I think in Web.config you would need to set <authentication mode="Windows"...

When using Windows authentication, we never store the user's windows password in the db at all, maybe we generate a random password and put it in the db but it is never used because the user never has to login to the site, he only has to log in to the windows machine or domain.

Hope it helps,

Joe

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