Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Using Modules a...Using Modules a...Windows Authentication in DNN -  Authentication ModuleWindows Authentication in DNN - Authentication Module
Previous
 
Next
New Post
8/18/2017 6:39 AM
 

Tom,

yes, always. At least, it looks like that.

Please check your IIS/NTFS settings again. WindowsSignin.aspx should not allow anonymous access.

There should be a web.config file in this folder (/DesktopModules/AuthenticationServices/ActiveDirectory) with the following contents:

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
   <location path="WindowsSignin.aspx">
      <system.webServer>
         <security>
            <authentication>
               <windowsAuthentication enabled="true" />
               <anonymousAuthentication enabled="false" />
            </authentication>
         </security>
      </system.webServer>
   </location>
</configuration>

Happy DNNing!
Michael


Michael Tobisch
DNN★MVP

dnn-Connect.org - The most vibrant community around the DNN-platform
 
New Post
8/18/2017 8:44 PM
 
Thanks again Micheal.
Yes I do have Anonymous Authentication set as Disabled (only Forms Authentication and Windows Authentication are enabled for that file). And my web.config in that folder looks like yours.

I just re-installed the extension and went through everything again, and I'm back where I was before:
- If I just browse to the site address, I don't get automatically logged in ( I just see the homepage with a Login button))
- If I browse directly to the windows signin page while on the Windows network, I will get automatically logged in to the site (as Windows user)
- If I browse to a page which is restricted to registered users only, I get re-directed to the Login Page (which has tabs for Standard log in or Windows log in), where I can manually log in as either Standard or Windows user.
- There are two Users in the site (besides admin/host) The two Users (myself and one co-worker) were created automatically by browsing to the WindowsSignin page while on the Windows network, and have name/email, etc information pulled from AD )

So it seems like the auto re-direct to the windows login is what isn't working. Do you know how that works?
Do you have the site's default document set to anything? Any other ideas why it isn't working?

I suppose it could have to with the fact that I'm running DNN 9 and maybe the module hasn't been made to work with it yet. And it seems to have very little support.
But I feel so close to getting it to work I dont want to give up just yet.

Thank you

Tom
 
New Post
8/21/2017 12:14 PM
 

Tom,

I was looking at my web.config file to find an answer, what I found as relevant are these entries:

<system.webServer>
   ...
   <modules>
      ...
      <add name="Authentication" type="DotNetNuke.Authentication.ActiveDirectory.HttpModules.AuthenticationModule, DotNetNuke.Authentication.ActiveDirectory" />
      ...
   </modules>
   <handlers>
      ...
      <add name="LogoffHandler*" path="Logoff.aspx" verb="*" type="DotNetNuke.Services.Authentication.LogOffHandler, DotNetNuke" preCondition="integratedMode" />
      ...
   </handlers>
   ...
</system.webServer>
<system.web>
   ...
   <httpModules>
      <!-- add name="Authentication" type="DotNetNuke.HttpModules.AuthenticationModule, DotNetNuke.HttpModules.Authentication" / -->
      ...
      <remove name="FormsAuthentication" />
      <add name="FormsAuthentication" type="System.Web.Security.FormsAuthenticationModule" />
      ...
      <add name="Authentication" type="DotNetNuke.Authentication.ActiveDirectory.HttpModules.AuthenticationModule, DotNetNuke.Authentication.ActiveDirectory" />
   </httpModules>
   <httpHandlers>
      ...
      <!-- This adds legacy support for the Logoff page -->
      <add verb="*" path="Logoff.aspx" type="DotNetNuke.Services.Authentication.LogOffHandler, DotNetNuke" />
   </httpHandlers>
   ...
<system.web>
...
<!-- Forms or Windows authentication -->
<authentication mode="Forms">
   <forms name=".DOTNETNUKE" protection="All" timeout="60" cookieless="UseCookies" />
</authentication>
<!--
<identity impersonate="true" userName="DOMAIN\serviceuser" password="password" />
   <authentication mode="Windows">
</authentication>
-->
...
<authentication defaultProvider="ADSIAuthenticationProvider">
   <providers>
      <clear />
      <add name="ADSIAuthenticationProvider" type="DotNetNuke.Authentication.ActiveDirectory.ADSI.ADSIProvider, DotNetNuke.Authentication.ActiveDirectory" providerPath="~\Providers\AuthenticationProviders\ADSIProvider\" />
   </providers>
</authentication>
...
<location path="DesktopModules/AuthenticationServices/ActiveDirectory/WindowsSignin.aspx">
   <!-- Disable Forms Authentication -->
   <formsAuthenticationWrapper enabled="false" />
   <system.webServer>
      <security>
         <!-- Enable IIS Windows authentication for the login page -->
         <authentication>
            <windowsAuthentication enabled="true" />
            <anonymousAuthentication enabled="false" />
         </authentication>
      </security>
   </system.webServer>
</location>

Hope that helps.

Happy DNNing!
Michael


Michael Tobisch
DNN★MVP

dnn-Connect.org - The most vibrant community around the DNN-platform
 
New Post
8/22/2017 9:26 PM
 
Thanks so much Michael. I was actually thinking to ask about your web.config. I'll take a look and compare mine and see whether I can get this working better. Will let you know.
Thanks again, I really appreciate it.
Tom
 
New Post
8/23/2017 5:56 AM
 
Tom,

you're welcome. Please keep in mind that I am using DNN 7.4.2 on this site.

Happy DNNing!
Michael

Michael Tobisch
DNN★MVP

dnn-Connect.org - The most vibrant community around the DNN-platform
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Using Modules a...Using Modules a...Windows Authentication in DNN -  Authentication ModuleWindows Authentication in DNN - Authentication Module


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out