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 ForumsAuthenticationAuthenticationTutorial - Setup Mix Authentication in Windows Server 2008 R2 by using IIS7.5Tutorial - Setup Mix Authentication in Windows Server 2008 R2 by using IIS7.5
Previous
 
Next
New Post
9/30/2011 5:19 AM
 
Hi, I am from Malaysia and I would like to share my experience to all of you about setting up mix authentication for your DotNetNuke portal. I use DotNetnuke 6.1, Windows Server 2008 R2, IIS 7.5  and Microsoft SQL Server 2008 Express for my web portal and it works like a charm.  

Step 1 - Setting up Application Pool
1. Open IIS 7.5.
2. Select "Application Pool" on your right panel and "Application Pool" page will be shown in the content page.


 
3. In "Application Pool", right click on "Classic .NET AppPool" and select "Advance Setting".
4. In "Advance Setting", set ".Net Framework Version" to v2.0, "Managed Pipeline Mode" to Classic, "Identity" to NetworkService, "Load User Profile" to True



Step 2 - Setting up web site in IIS 7.5
1. In IIS 7.5, go to "Default Web Site" on right panel.
2. Right click on "Default Web Site", select "Add Application".



3. Insert "Alias" for your web site, select "Physical Path" and select Classic .Net AppPool as Application Pool.



4. Your web portal is now hosted and your local URL is http://localhost/"Alias"/

Step 3 - Setting Up Folder Permission for DotNetNuke Portal
1. Right click on your web portal and select "Edit Permission".



2. Select "Security" tab, you will be redirected to "Security" page.
3. Click "Edit" button to add a new user.



4. In "Permission" page, click "Add" to add a new user and a window will be popup.
5. Insert "Authenticated Users" and click "OK" to add this user.

Step 4 - Setting Up IIS Permission for DotNetNuke Portal in IIS 7.5
1. Go to IIS again and select you web site in the right panel in IIS.



2. Select "Authentication" in content pane and u will be redirected to "Authentication" page.
3. In "Authentication" page, Enabled only "Anonymous Authentication" and "Form Authentication".



4. Now go back to the right panel of the IIS, Expand the directory tree till you reach "Alias"/DesktopModules/AuthenticationServices/ActiveDirectory/.



5. Select again "Authentication", this time you only have to enable "Form Authentication" and "Window Authentication".



Step 5 - Setting up Active Directory in DotNetNuke
1. Go to an Extensions module - OR - Navigate to Admin > Extensions.
2. At Filter by Type, select Authentication System from the drop-down box.
3. Click the Edit button beside DNN_ActiveDirectoryAuthentication.
4. Go to the Extension Settings section.
5. At Enabled, Check the check box to enable this authentication.
6. At Synchronize Role, Check the check box to synchronize the user's role with the Windows Active Directory security group each time user logon.
7. At Provider, select the Authentication provider for this portal. E.g. ADSIAuthenticationProvider
8. At Authentication Type, select the Authentication type for this portal. (I select Delegation)
9. In the Root Domain text box, enter your Root Domain in the format yourdomain.com or DC=you-rdomain,DC=com.
10. In the User Name text box, enter who has permission to access Active Directory. (make sure the user has administrator right to access to AD)
11. In the Password text box, enter the password for the above user name.
12. In the Confirm Password text box, re-enter the above password.
13. Click the Update Authentication Settings link.
14. I copy step 5 from user manual. If you cannot find your domain,
a. please make sure your computer has joint AD Domain.
b. please make sure AD DNS is "Preffered DNS Server" but not "Alternative DNS Server".
c. please consult Network Administrator. ;)

Step 6 - Setting up Error Page
1. By right you should be able to login to DotNetNuke Web Portal using Windows Authentication by using Active Directory account.
2. What if you do not have account in Active Directory, you will be redirected to 401 Error page.
3. In this step, i will redirect the 401 error page to DNN Default Login page.
4. Open IIS, expand the directory tree till you reach "Alias"/DesktopModules/AuthenticationServices/ActiveDirectory/.



5. Double click "Error Pages" in content pane, you will be redirected "Error Pages" page.
6. In this page, right click "401" and select "Edit". 7. Select "Response with 302 Redirect" and Enter your DotNetNuke web portal's address so that it will be redirected back to form authentication when window authentication fail to process. For example, http://ipAddress/DotNetNuke/

 
New Post
10/1/2011 1:12 PM
 
Thanks for the tutorial, the 401 redirect is a nice touch.

Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
New Post
10/2/2011 11:48 PM
 
Very nicely done, thank you!

Scott Willhite, Co-Founder DNN

"It is only with the heart that one can see rightly... what is essential is invisible to the eye. "
~ Antoine de Saint-Exupéry

 
New Post
1/26/2012 12:05 PM
 

Hong Tat,

Thanks for this in depth tutorial.  It is working great for me.  I did have an issue where I was getting an Error 500 (500.19 on the server), I eventually fixed this by by removing the redirect on the Error 401.  Unfortunately I didn't  follow the instructions line by line and I put things in the wrong places, so it was probably an issue i created.  Hopefully this will help someone else that has problems following instructions. 

Again, Thank you very much!
Nick

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Provider and Extension ForumsProvider and Extension ForumsAuthenticationAuthenticationTutorial - Setup Mix Authentication in Windows Server 2008 R2 by using IIS7.5Tutorial - Setup Mix Authentication in Windows Server 2008 R2 by using IIS7.5


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