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

HomeHomeDNN Open Source...DNN Open Source...Provider and Extension ForumsProvider and Extension ForumsAuthenticationAuthenticationOnly server Administrators have permissions to images/css w/ActiveDirectory authOnly server Administrators have permissions to images/css w/ActiveDirectory auth
Previous
 
Next
New Post
3/4/2009 5:34 PM
 

 I just downloaded and installed the latest 4.x DotNetNuke 2 days ago and then installed the ActiveDirectory authentication.  I followed all of the steps in the PDF (ActiveDirectory Users Guide.01.00.04.pdf) to get it working.  It would not work until I enabled impersonation in the web.config as the user I selected with read access to AD and granted all the same permissions to that user as the ASPNET user has on the server.  I have checked "Syncronize Role" and added several roles that match Pre Windows 2000 AD group names.  

Everything is working fine regardless of user or role/AD group or page-level DNN permissions ... as long as that domain user is also in the web server's local Administrators group.  For other users, even if they are in an AD group with a matching syncronized DNN role where the role is granted view and edit permissions to a page, the user gets one authentication popup dialog per external resource (css, image, FCKEditor, etc) that attempts to load.  If the user hits cancel on every dialog, the page finally displays - but only the bare HTML.  The "Users Online" module does show them as logged in, and the user can even edit text/HTML modules, as long as they use the Basic Text Box editor instead of the Rich Text Editor (which gives an IIS ACL permissions error page when selected).

If I add this user that is having this trouble to the local web server Administrators group, everything works for them.  

What can I do to fix this without adding users as local server administrators?  Why does the user's permissions on the web server enter into it at all - shouldn't it only depend on the user being impersonated being able to access the resources (since it is taking the place of the ASPNET account)?

Why is impersonation required in some cases but not others? The PDF didn't specify, it just said you may have to use impersonation if it doesn't work (and I did).

-- Setup --

In web.config these lines areuncommented:
<add name="Authentication" type="DotNetNuke.Authentication.ActiveDirectory.HttpModules.AuthenticationModule, DotNetNuke.Authentication.ActiveDirectory" />
<identity impersonate="true" userName="Domain\MyUser" password="password" />

The user being impersonated has been granted the following directory permissions on the web-server:
 

  • Read & Execute, List Folder Contents, Read to
    c:\WINNT\Microsoft.NET\Framework\v2.0.50727
  • Full Control to the
    E:\inetpub\wwwroot\DNN root virtual directory
  • Full Control to
    c:\WINNT\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files

More info:

  • Microsoft Windows 2000 Advanced Server SP4
  • IIS 5.0 
  • DotNetNuke Community Edition
  • DotNetNuke Version: 04.09.02
  • .NET Framework: 2.0.50727.83
  • ActiveDirectory
    • ActiveDirectory_01.00.05_install.zip
    • Authentication type: Delegation
    • DesktopModules/AuthenticationServices/ActiveDirectory/Settings.ascx
    • DesktopModules/AuthenticationServices/ActiveDirectory/Login.ascx

 

 
New Post
3/4/2009 5:58 PM
 

It looks like you've got everything setup properly Russell. Perhaps check that the permissions you set for your impersonation user have been forced down to all files and folders..

As for why some need impersonation and some don't..... I honestly don't have an answer and I can't remember if I've ever found a valid one. I think it all depends on how the network administrator has set things up. As an example....on our old webserver that was on a DMZ zone with a hole poked in so that it could talk to the AD I had to user impersonation. On the new one (which is a virtual server setup on a different DMZ) I don't have to.

 
New Post
3/4/2009 8:00 PM
 

All of the permissions were recursed - and as a matter of fact, I found out later that the impersonated user is also in the server's local administrators group anyway.   So permissions on that user shouldn't be factoring into this.  

Does it make sense that permissions of the website visitor accounts should factor into this at all?  I thought ASPNET or the impersonated account would be the only account that would need permissions to the resources so it could serve it to the visitor.  Is there anything else I can check?

 
New Post
3/4/2009 11:54 PM
 

Does it make sense that permissions of the website visitor accounts should factor into this at all?  I thought ASPNET or the impersonated account would be the only account that would need permissions to the resources so it could serve it to the visitor.  Is there anything else I can check?

No the visitor's account shouldn't factor into this at all. You left the authentication as forms in the web.config right? You didn't change it to Windows?

Re-reading your initial post has raised a question. You mention that a pop-up appears for any external resource.....these resources are still falling under the DNN directory tree and aren't stored elsewhere on the server correct?

 
New Post
3/5/2009 10:07 AM
 

Mike Horton wrote

You left the authentication as forms in the web.config  right? You didn't change it to Windows?

Re-reading your initial post has raised a question. You mention that a pop-up appears for any external resource.....these resources are still falling under the DNN directory tree and aren't stored elsewhere on the server correct?

The resources in question are all the normal DNN resources coming from skins, containers, FCKEditor, etc - I didn't add any additional ones.  So their source should be whatever the default source location is for those resources.  I'm assuming those are under either the DNN virtual directory root or the temporary asp.net files, both of which the impersonated user has full control over.

In the IIS settings - should both anonymous and integrated windows security be checked (that's the way I currently have it configured).  Authentication is still set to forms in web.config.  Here are all the relevant bits from the web.config I could find:

<section name="authentication" requirePermission="false" type="DotNetNuke.Framework.Providers.ProviderConfigurationHandler, DotNetNuke"   />

<httpModules>
  <!-- add name="Authentication" type="DotNetNuke.HttpModules.AuthenticationModule, DotNetNuke.HttpModules.Authentication" / -->
  <add name="Authentication" type="DotNetNuke.Authentication.ActiveDirectory.HttpModules.AuthenticationModule, DotNetNuke.Authentication.ActiveDirectory" />
</httpModules>

<!-- forms or Windows authentication -->
<authentication mode="forms">
  <forms name=".DOTNETNUKE" protection="All" timeout="60" cookieless="UseCookies" />
</authentication>

<identity impersonate="true" userName="domain\user" 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>
 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Provider and Extension ForumsProvider and Extension ForumsAuthenticationAuthenticationOnly server Administrators have permissions to images/css w/ActiveDirectory authOnly server Administrators have permissions to images/css w/ActiveDirectory auth


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