Windows authentication

Post here for help with installing or upgrading mojoPortal pre-compiled release packages. When posting in this forum, please provide all relevant details. You may also want to review the installation or upgrading documentation.

If you have questions about using the source code or working with mojoPortal in Visual Studio, please post in the Developer forum.

Post here for help with installation of mojoPortal pre-compiled release packages

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.

You may also want to review the installation or upgrading documentation.

If you have questions about using the source code or working with mojoPortal in Visual Studio, please post in the Developer forum.

This thread is closed to new posts. You must sign in to post in the forums.
6/11/2008 1:38:01 AM
Gravatar
Total Posts 1

Windows authentication

I am trying to incorporate windows authentication but keep getting a 401.1 error.

On the web.config file i did the changes as :

------------------------------------------------

<!--<authentication mode="Forms">
<forms
name=".mojochangeme"
protection="All"
timeout="50000000"
path="/"

/>
</authentication>-->

<authentication mode="Windows" />
<authorization>
<deny users="?" />
</authorization>

-----------------------------------------------

I have the mojo files installed at c:\inetpub\cms\

the Authentication method for the Virtual Directory permissions on IIS is set as "integrated windows authentication"

I appreciate it a lot if i can get some help on this

thanks

 

6/11/2008 6:16:07 AM
Gravatar
Total Posts 18439

Re: Windows authentication

Hi,

Are you testing with IE or with Firefox. It works for me using IE, but in FF I get a login prompt. Aliitle googling and I found notes on configuring FF to work also. The reason is it needs the browser to pass your windows credentials to IIS in the request and IE does this by default.

http://brennan.offwhite.net/blog/2005/07/22/firefox-authentication-with-ntlm/

and more notes about Windows authentication with ASP.NET

Scott Guthries blog post

How To Use Windows Authentication in ASP.NET

One further tip, is before you change to windows authentcation, make sure and change the admin user to have the same user name as your windows login. For example if my windows login is jaudette then I wiuld change admin to jaudette before making the change to windows authentication.

The reason for that is mojoportal still handles role membership internally, it does not use windows roles, so when I login using my windows login I need to already be in admins role to manage the site. Users will be able to login but will not be able to edit unless you put them into mojoportal roles with edit permission. The first itme the user visits a mojoportal user will be created autmatically based on the windows login but it doesn't get any roles assigned automatically.

Hope it helps,

Joe

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