Windows Authentication Help

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.
7/1/2008 5:06:53 AM
Gravatar
Total Posts 68

Windows Authentication Help

Hi.

I have tried many times to get the Windows Authentication working on my Intranet but with no success.

Could you give me step by step help on switching from Forms + LDAP authentication to Windows Authentication please?

This is a bit urgent as some of the staff members in other areas cant access the intranet using their previous accounts. Previously we were using windows authentication but no dotnet code.

What do I do in

  1. IIS ?
  2. Web.config ?
  3. Anywhere else?
7/1/2008 2:00:14 PM
Gravatar
Total Posts 18439

Re: Windows Authentication Help

Hi Dominique,

I just noticed I had a document stubbed out for this but it had no content. I've updatedthe documentation with the needed content.

http://www.mojoportal.com/usingwindowsauthentication.aspx

Hope it helps,

Joe

7/1/2008 11:14:27 PM
Gravatar
Total Posts 68

Re: Windows Authentication Help

OK. I tried that before but still no luck.

IIS - Anonymouse and Integrated Windows Authentication is ticked.

Web.config looks like this

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

/>
</authentication>-->

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

<anonymousIdentification
enabled="false"
cookieName=".ASPXANONYMOUS"
cookieTimeout="43200"
cookieSlidingExpiration="true"
cookieless="UseCookies"
cookieProtection="All"
/>

 

but still when I use IE i get a prompt and when I enter the user name and password which is by the way what the Admin has been changed to it prompts me again and again for the same thing. when i give up and click the cancel button then i get the 401.1 error.

What should the LDAP settings be ? Should they be on or off? LDAP is working fine by the way if I work on Forms Authentication.

Really frustrating coz it seems really straightforward.

 

 

 

7/2/2008 8:53:59 AM
Gravatar
Total Posts 18439

Re: Windows Authentication Help

Hi,

You would definitely want to uncheck Use LDAP before switching to windows authentication.

Windows authentication cannot work over the internet. It can only work on a local network. Also if you are using a proxy server or a proxying firewall that could be a problem.

By using Forms authentication and LDAP you could login users over the internet with their windows credentials, but this requires that the web server be dual homed so it has a public facing network card for the internet and a private facing card to talk to the LDAP server. You would definitely want to use an ssl certificate since susers will be entering their windows credentials in the login form in this scenario.

Hope it helps,

Joe

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