Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Products › Development › Forge › Provider - Authentication Register  |  

 

 

  Quick Links  
 


  Team Leadership  

Mike Horton
(Team Lead)

 

 Charles Nurse
(Core Team Sponsor)

 


  Team Members  

 Daniel Bartholomew
(CardSpace)

Mike Horton
(Active Directory)

  Charles Nurse
(LiveID, OpenID)

We're recruiting!  Can you handle support for the LiveID or OpenID provider?

 


  DotNetNuke Projects  
The DotNetNuke Projects are a special category of platform extensions which are developed by volunteers to conform to the high professional standards mandated by DotNetNuke Corporation. The DotNetNuke Projects are distributed as a standard part of the DotNetNuke core application release offerings.

 


PortalWebHosting
  Ads  
r2i.ntegrated
 


  Sponsors  

Meet Our Sponsors

eUKhost.com is commited to offer exceptional UK Windows Web Hosting solutions with quality 24x7 technical support.Our plans support ASP.Net, ASP, ASP.NET Ajax extensions, XML, MSSQL, MySQL, PHP,DNN, multiple domains and Shared SSL as standard.
SmarterTools
The Official Microsoft ASP.NET Website
Portal Webhosting - Hosting For Developers
Red-Gate Software
MaximumASP
 


DotNetNuke® Project :: Authentication Providers

The Authentication Provider project is actually a collection which includes both the core components and the individual providers for each authentication type.  At present the supported providers include Active Directory, LiveID and OpenID.

Each member of the Authentication team leads the effort on their own specific provider.  However, they work as a team to ensure that all the providers are well serviced (including forums, fixes, etc).

 


Team Member Blog
Oct 16

Posted by: Mike Horton
10/16/2007

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:

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