DNN Blog

Oct 16

Posted by: Mike Horton
10/16/2007  RssIcon

There are a few considerations or changes when using the newly separated from the core AD Provider.

Primarily the AD Provider has been moved to DesktopModules/AuthenticationServices/ActiveDirectory and a new .dll is used (DotNetNuke.Authentication.ActiveDirectory.dll instead of DotNetNuke.Authentication.ADSI.dll). This results in two major changes, one in the web.config and one in IIS permissions.

I don't know if this will show up properly in the blog but no longer is < add name="Authentication" type="DotNetNuke.HttpModules.AuthenticationModule, DotNetNuke.HttpModules.Authentication" /> used and has been replaced by <add name="Authentication" type="DotNetNuke.Authentication.ActiveDirectory.HttpModules.AuthenticationModule, DotNetNuke.Authentication.ActiveDIrectory" />. Don't worry that it's not in your web.config before you do your initial install or upgrade to 4.6.0 as it's added when the provider is installed. However, do not uncomment the original Authentication line as it will cause problems down the line.

Once the provider is installed and enabled as an available provider (this can be checked under Host->Host Settings->Authentication Settings) the settings can be set under Admin->Authentication as per the pinned post in the Active Directory forum. Unfortunately you will also need to redo the Authentication settings in the case of an upgrade from 4.5.5 or lower.

Lastly, if you were using automatic logins you'll have to set the permissions for Windowssignin.aspx as it's moved from Admin/Security to DesktopModules/AuthenticationServices/ActiveDirectory.

I will get some formalized documentation posted sometime this week but, as always, feel free to ask questions in the Active Directory Provider forum.

Tags:
Categories:
Location: Blogs Parent Separator Mike Horton

39 comment(s) so far...


Re: DNN 4.6.0 and the Active Directory Provider

Where can I get this provider? It doesn't seem to be included in the 4.6 package, nor available on the download site.

By phammerl on   9/17/2007

Re: DNN 4.6.0 and the Active Directory Provider

Check the install/packages folder. You may need to rname the file from. resources to .zip

By cshark on   9/17/2007

Re: DNN 4.6.0 and the Active Directory Provider

Awesome! Thanks! Found it!

By phammerl on   9/18/2007

Re: DNN 4.6.0 and the Active Directory Provider

Awesome! Thanks! Found it!

By phammerl on   9/18/2007

Re: DNN 4.6.0 and the Active Directory Provider

Hi, I'm getting the following error when installing the AD module on a site that I just upgraded from 4.03.05 to 4.06:


StartJob Starting Installation
StartJob Reading files
Info Loading Settings.ascx
Info File Settings.ascx read successfully
Info Loading WindowsSignin.aspx
Info File WindowsSignin.aspx read successfully
Info Loading App_LocalResources/Login.ascx.resx
Info File App_LocalResources\Login.ascx.resx read successfully
Info Loading App_LocalResources/Settings.ascx.resx
Info File App_LocalResources\Settings.ascx.resx read successfully
Info Loading bin/Providers/DotNetNuke.Authentication.ActiveDirectory.dll
Info File bin/Providers\DotNetNuke.Authentication.ActiveDirectory.dll read successfully
Info Loading ActiveDirectory_install.dnn
Info File ActiveDirectory_install.dnn read successfully
Info Loading license.txt
Info File license.txt read successfully
Info Loading Login.ascx
Info File Login.ascx read successfully
EndJob Reading files done.

Failure ExceptionSystem.Exception: Dnn load failed, aborting at DotNetNuke.Modules.Admin.ResourceInstaller.PaDnnLoaderFactory.GetDnnAdapter() at DotNetNuke.Modules.Admin.ResourceInstaller.PaInstaller.Install()


Any ideas?

Thanks!

By bkeogh on   9/18/2007

Re: DNN 4.6.0 and the Active Directory Provider

bkeogh, post your problem in the forum if you haven't already.

By mikeh on   9/18/2007

Re: DNN 4.6.0 and the Active Directory Provider

I have the same problem than bkeogh please could you help me to solve it.... I think it's come from the dnn file which is not valid according to module definition validator. Thanks!

By palikao29 on   9/19/2007

Re: DNN 4.6.0 and the Active Directory Provider

Palikao29, it's not a module so it doesn't get installed the same way. Check out this post in the forums http://www.dotnetnuke.com/Community/Forums/tabid/795/forumid/89/threadid/170019/scope/posts/Default.aspx

By mikeh on   9/19/2007

Re: DNN 4.6.0 and the Active Directory Provider

Hi, there a way to authenticate an user against two domains? Do I have to extend / change the code and/or configure my server to "see" both domains? .. I installed the current version without problems.. but when I configure it, it only work with one domain

By alexjaicobb on   9/19/2007

Re: DNN 4.6.0 and the Active Directory Provider

Two separate domains or separate sub-domains? Sub-domains should work if it's pointing at the parent domain though I've heard that synchronization doesn't work properly. For two separate domains I'm not sure if it could be made to work. It would definitely need some heavy code modification if it was possible.

By mikeh on   9/19/2007

Re: DNN 4.6.0 and the Active Directory Provider

Thank you mikeh. Is it normal that when I enable Active Directory Authentication there is a javascript error "dnn is not defined" which make problem to display correctly the pages?

By palikao29 on   9/20/2007

Re: DNN 4.6.0 and the Active Directory Provider

Palikao29, no that is not normal.

By mikeh on   9/20/2007

Re: DNN 4.6.0 and the Active Directory Provider

So what should I do?
I want also to say you thank you for tools you bring us and the help too.

By palikao29 on   9/20/2007

Re: DNN 4.6.0 and the Active Directory Provider

Is it possible to make the source code for the 4.6.0 provider. I've got a couple of developers who are going to work on the issue related to Active Directory and Nested groups. Once they have completed their changes and it has been tested I will provide it to you for integration back into the source.

By adrian_scott_day on   9/26/2007

Re: DNN 4.6.0 and the Active Directory Provider

The source code is currently going through the release tracker process.

By mikeh on   9/27/2007

Re: DNN 4.6.0 and the Active Directory Provider

DNN 4.6.2 ActiveDirectory Install issue

There is a error with the DNN 04.06.00.SqlDataProvider script when using database with a ObjectQualifier configured.

Basically the {DatabaseOwner}{ObjectQualifer} tags are reversed on line 760.

Here is an excerpt from the script:
-- Add an assembly regsitration for this package
INSERT INTO {objectQualifier}{databaseOwner}Assemblies (
PackageID,
AssemblyName,
Version
)
VALUES (
@PackageID,
@AssemblyName,
@Version
)

By bdebeer on   10/1/2007

Re: DNN 4.6.0 and the Active Directory Provider

I have a single sign on application that authenticates useing AD credentials and authenticates the user in both AD and DNN (on separate domains). Now, I am going to have a service thread running in my AD domain that will need to update the DNN user profile with data from the AD user information. My question is this: is it easier to make calls directly to the sql database to update the information or to create a webservice within DNN for the thread on the other domain to call to have that information updated? If the first choice, is there an easy way to synchronize the machine ids so that these two sides can talk to each other?

By smsox on   10/3/2007

Re: DNN 4.6.0 and the Active Directory Provider

Hi, when will be available the source code of this provider?... And there's any documentation or samples available of how to develop my own provider?.. I'm working on a Intranet site that uses LDAP (a very especific and complex escenario), so I need to develop my own provider, the problem is that I dont know exactly where to start, I've been looking for samples/documentation but haven't found anything besides the DNN provider included in the source of dotnetnuke.

By alexjaicobb on   10/9/2007

Re: DNN 4.6.0 and the Active Directory Provider

Hi, when will be available the source code of this provider?... And there's any documentation or samples available of how to develop my own provider?.. I'm working on a Intranet site that uses LDAP (a very especific and complex escenario), so I need to develop my own provider, the problem is that I dont know exactly where to start, I've been looking for samples/documentation but haven't found anything besides the DNN provider included in the source of dotnetnuke.

By alexjaicobb on   10/9/2007

Re: DNN 4.6.0 and the Active Directory Provider

Hi, when will be available the source code of this provider?... And there's any documentation or samples available of how to develop my own provider?.. I'm working on a Intranet site that uses LDAP (a very especific and complex escenario), so I need to develop my own provider, the problem is that I dont know exactly where to start, I've been looking for samples/documentation but haven't found anything besides the DNN provider included in the source of dotnetnuke.

By alexjaicobb on   10/9/2007

Re: DNN 4.6.0 and the Active Directory Provider

Mike is there a way that we could possibly get a user registered on one of our DNN sites and then get thier user name changed so that when we add them to active directory none of their information is lost?

By ksisneros on   10/10/2007

Re: DNN 4.6.0 and the Active Directory Provider

ksisneros, I'm not sure of an easy way. The only way I can think of, without doing any testing, would be to change their username in the DNN database to DOMAIN\username when they're added to the AD. It'll have to happen for sure in the Users table and possibly in the aspnet membership tables. Whether it would work or not though I'm not sure.

By mikeh on   10/10/2007

Re: DNN 4.6.0 and the Active Directory Provider

hi, can you provide a way then we login as username instead of DOMAIN\username? I think it make senses.

By rose602 on   10/16/2007

Re: DNN 4.6.0 and the Active Directory Provider

It does and it doesn't make sense. In a pure AD environment it does but in a intranet/internet environment it doesn't. If an external user has registered on a site with the username "mikeh" when I go to use the site as an AD user it can't automatically create my account. However, if you look in the AD Forum some have posted how to remove the domain. I personally use a script from the AD forums that allows users to login without it but their accounts are still created as DOMAIN\username.

By mikeh on   10/16/2007

Re: DNN 4.6.0 and the Active Directory Provider

Mike, I believe their is an error in your above statement. I could not get the automatic login to work by adding the line in the web config file you mentioned, which was: . However when switched the reference to: it now works.
NOTE: I am running 4.6.2 with a fresh install.

By ccarns on   10/16/2007

Re: DNN 4.6.0 and the Active Directory Provider

Thanks ccarns. It was a copy/past error. I've edited the post and fixed it.

By mikeh on   10/16/2007

Re: DNN 4.6.0 and the Active Directory Provider

I've dine evrything described above and I still get prompted for user/pwd only to get the below error.

Compilation Error
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.

Compiler Error Message: BC30002: Type 'DotNetNuke.Security.Authentication.AuthenticationController' is not defined.

Source Error:



Line 41:
Line 42: If Request.ServerVariables("LOGON_USER").Length > 0 Then
Line 43: Dim objAuthentication As New DotNetNuke.Security.Authentication.AuthenticationController
Line 44: objAuthentication.AuthenticationLogon()
Line 45: End If


Source File: C:\DotNetNuke_2\Website\WindowsSignin.aspx.vb Line: 43


By billbayjr on   10/18/2007

Re: DNN 4.6.0 and the Active Directory Provider

Compilation Error
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.

Compiler Error Message: BC30002: Type 'DotNetNuke.Security.Authentication.AuthenticationController' is not defined.

Source Error:



Line 41:
Line 42: If Request.ServerVariables("LOGON_USER").Length > 0 Then
Line 43: Dim objAuthentication As New DotNetNuke.Security.Authentication.AuthenticationController
Line 44: objAuthentication.AuthenticationLogon()
Line 45: End If


Source File: C:\DotNetNuke_2\Website\WindowsSignin.aspx.vb Line: 43

By billbayjr on   10/18/2007

Re: DNN 4.6.0 and the Active Directory Provider

Please help me out as I am getting the following error after upgrading my DNN 4.0.3 to 4.6.2

A critical error has occurred.
Could not load type 'DotNetNuke.Security.Authentication.AuthenticationController' from assembly 'DotNetNuke, Version=4.6.2.0, Culture=neutral, PublicKeyToken=null'.

By candidinfo on   10/31/2007

Re: DNN 4.6.0 and the Active Directory Provider

Please help me out as I am getting the following error after upgrading my DNN 4.0.3 to 4.6.2

A critical error has occurred.
Could not load type 'DotNetNuke.Security.Authentication.AuthenticationController' from assembly 'DotNetNuke, Version=4.6.2.0, Culture=neutral, PublicKeyToken=null'.

By candidinfo on   10/31/2007

Re: DNN 4.6.0 and the Active Directory Provider

Please post problems in the forums in the future. It looks like you've got the wrong By mikeh on   10/31/2007

Re: DNN 4.6.0 and the Active Directory Provider

It looks like you've got the wrong line uncommented in your web.config. Please post your problem in the forum where it is easier to help you out.

By mikeh on   10/31/2007

Re: DNN 4.6.0 and the Active Directory Provider

Mike and/or Charles -

I coordinate the Southern California DotNetNuke Users Group that meets monthly (www.socaldug.org). We do virtual presentations via MS Live Meeting. Would you be able to "meet" with us (virtually) the 2nd Wed. of any month in 2008? We start at 5:30 pm Pacific time so we can include the East Coast. Whatever you would like to present would be interesting to our group, I'm sure, especially the Active Directory provider. Please let me know at dma@dmcma.com.

Dave McMullen

By dma111 on   11/3/2007

Re: DNN 4.6.0 and the Active Directory Provider

Any idea on when the source code will be available?

By cgraves on   11/9/2007

Re: DNN 4.6.0 and the Active Directory Provider

I'm not sure. The folks who can release it were busy with getting 4.7.0 released and the OpenForce conference. Hopefully now that those are both done it'll be soon. In the mean time you can get it at http://dnn.gmss.org

By mikeh on   11/9/2007

Re: DNN 4.6.0 and the Active Directory Provider

I get following error once I enable? Has anyone encountered this, I am running 4.7
A critical error has occurred object reference not set to an instance of an object.

By mydotnetnukeaccount on   2/6/2008

Re: DNN 4.6.0 and the Active Directory Provider

Without seeing a screenshot or the error from the EventViewer I have to guess that it's probably an impersonation error. This is covered in the documentation.

By mikeh on   2/6/2008

Re: DNN 4.6.0 and the Active Directory Provider

Just upgraded to 483 from 455 and installed AD provider. I get this error when I try to go in to Admin / Authentication to set up AS:

Error: is currently unavailable.
DotNetNuke.Services.Exceptions.ModuleLoadException: Object reference not set to an instance of an object. ---> System.NullReferenceException: Object reference not set to an instance of an object. at DotNetNuke.Authentication.ActiveDirectory.Settings.Page_Load(Object sender, EventArgs e) --- End of inner exception stack trace ---

Any ideas?

By dougiea on   6/4/2008

Re: DNN 4.6.0 and the Active Directory Provider

@dougiea:

Please see this forum post (http://www.dotnetnuke.com/Community/Forums/tabid/795/forumid/89/threadid/199317/scope/posts/Default.aspx). In the future please post configuration problems in the forum. It's easier to answer them there than in the blogs.

By mikeh on   6/4/2008
Attend A Webinar
Free Demo Site
Download DotNetNuke Professional Edition Trial
Have Someone Contact Me

Like Us on Facebook Join our Network on LinkedIn Follow DNN Corporate on Twitter Follow DNN on Twitter

Advertisers

Sponsors

DotNetNuke Corporation

DotNetNuke Corp. is the steward of the DotNetNuke open source project, the most widely adopted Web Content Management Platform for building web sites and web applications on Microsoft .NET. Organizations use DotNetNuke to quickly develop and deploy interactive and dynamic web sites, intranets, extranets and web applications. The DotNetNuke platform is available in a free Community and subscription-based Professional and Enterprise Editions with an Elite Support option. DotNetNuke Corp. also operates the DotNetNuke Store where users purchase third party apps for the platform.