Using Active Directory with DNN

As we saw in Chapter 2, Managing Users and Site Setup, DNN comes with built-in user security with roles and grants. This is fine in many cases, but sometimes your DNN site is located on a network that already has Active Directory (AD) security. How can you configure a DNN portal to use the existing security and not have to recreate all the AD users?

The answer is to add the Active Directory Authentication provider to work along with the DNN security provider. In this way you can log in with user names defined in DNN or in Active Directory.

In this recipe we will see how to configure a DNN portal to use Active Directory authentication along with the default DNN authentication.

Getting ready

To follow along with this recipe you'll need access to a network that uses Active Directory with a valid username and password. Note that on some networks access to Active Directory may be restricted. Check with the network administrator if you have trouble using this recipe.

1. Start by logging in as SuperUser.

2. Select Extensions from the Host menu.

3. Scroll down to Authentication System section.

Authentication System

Default Authentication X DMN_ActiveDirectoryAuthentication

X DMN_l_iveIDAuthentication

X DMN_OpenIDAuthentication

The Default UserName/Password Authentication 1.0.0 System for DotNetNuke.

The DotNetNuke Active Directory Authentication 5.0.2 Project is an Authentication provider for DotNetNuke that uses the Windows Active Directory authentication protocol to authenticate users.

The DotNetNuke LivelD Authentication Project is an 1.0.1 Authentication provider for DotNetNuke that uses the LivelD authentication protocol to authenticate users.

The DotNetNuke OpenID Authentication Project is an 2.0.0 Authentication provider for DotNetNuke that uses the OpenID authentication protocol to authenticate

4. You should see Active Directory listed. If not, select Install Available Extensions from the action menu and install it.

5. Once you have confirmed Active Directory Authentication is installed, select Extensions from the Admin menu.

6. Scroll down to the list of authentication systems and click on the edit icon next to DNN_ActiveDirectoryAuthentication. This will display the Authentication Settings page.

Dnn Authentication Provider

7. Provide the following information:

□ Enabled?: Checked (means the portal will use AD)

□ Hide Login Controls?: Unchecked (don't hide the Windows Login button)

□ Synchronize Role?: Unchecked (don't synch the DNN roles with the AD roles)

□ Do Not Automatically Create Users?: Unchecked (allow existing AD users to use the portal)

□ Provider: Leave the default ADSIAuthenticationProvider

□ Authentication Type: Leave the default Delegation

□ Root Domain: If you know the root domain of your network then use that, otherwise leave blank

□ User Name: Provide a valid user name for your Windows network that can access Active Directory

□ Password: Provide the valid password for the user

□ Email Domain: Leave blank (specifies the Email Domain if AD is not available)

□ Default Domain: Provide the default domain of your users (if left blank the user will need to specify with their login for example

MYDOMAIN\jsmith)

□ Auto-Login IP Address: Leave blank (optional: enables automatic login based on IP address)

8. Click on Update Authentication Settings to save your changes. After a pause you should see a success message.

- Extension Settings

Authentication Settings

This editor allows you to configure the Authentication Provider

©Accessing Global Catalog:

+3 0

Responses

  • Pamela
    Can dnn authenticate against 2 active directories?
    6 years ago

Post a comment