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
Community › Forums Register  |  

AspDotNetStoreFront
  Ads  
OnyakTech
 


  Sponsors  

Meet Our Sponsors

FCKeditor Project
Salaro -- Skins and more
OnyakTech
CrystalTech Web Hosting™
Webhost4life, specialists in DNN hosting
Mad Development is a full service interactive agency focusing on the merge of design, technology, e-commerce, and affiliate marketing by providing total website solutions.
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Configure It! (...  How can I implement .net forms authentication in DNN?
Previous Previous
 
Next Next
New Post 5/21/2008 3:57 PM
Unresolved
User is offline pvirk
2 posts
10th Ranked


How can I implement .net forms authentication in DNN? 

Hello,

I am in the process of migrating an existing asp.net website over to Dot Net Nuke.  This website uses .net forms authentication to secure files in a particular directory, and users must first go through a login page before they are allowed access to these files.  How can I implement this same functionality in DNN?

I can see that the default web.config file in the DNN root directory already has a reference to enable forms authentiation, but I can't figure out how to apply this to any specific portal that I create.  Has anyone here come up against this same issue?

My platform uses the .net 2.0 framework and DNN 4.  Any help would be greatly appreciated.

Thanks,

pvirk

 
New Post 5/21/2008 10:17 PM
User is offline Charles Nurse
2984 posts
5th Ranked










Re: How can I implement .net forms authentication in DNN? 
Modified By Charles Nurse  on 5/22/2008 12:18:47 AM)

The built in Security/Login uses the forms Authentication to store the users Authentication ticket, and there is built in security to control access to the folders of your application.

You shouldn't need to do anything specific yourself.


Charles Nurse
DotNetNuke Trustee,
Senior Architect, DotNetNuke Coporation
MVP (ASP.NET) and
ASPInsiders Member
View my profile on LinkedIn
See my Blog for Articles on .NET, DNN and Module Development

View my Blog
 
New Post 5/22/2008 2:31 PM
User is offline pvirk
2 posts
10th Ranked


Re: How can I implement .net forms authentication in DNN? 
Hello Charles, Thank you for your prompt response. I'm a bit confused here - my understanding is that the built-in Security/Login that comes with DNN is used to access the content management end of things. Stuff like DNN users, portals, pages and the like. Yes? The site I am trying to convert over uses a collection of secured pages that will access a data source completely separate from the DNN database. On my existing site, this includes a custom login page that validates users via .net forms authentication. The login credentials (username, password) are verified against this data source. Once validated, users can look at the remaining content in the data source. I guess what I am asking is ... For a DNN portal, is there a way to keep the built-in DNN login functionality provided so that users can manage the DNN stuff, and at the same time setup .net forms authentication for pages that need to validate against and access a separate database? Hope this makes sense, feel free to flame me if not. Regards, pvirk
 
New Post 5/27/2008 6:54 AM
User is offline Vera Hausherr
82 posts
10th Ranked


Re: How can I implement .net forms authentication in DNN? 
Modified By Vera Hausherr  on 5/27/2008 8:55:32 AM)

I understand your questions, but I don't see why you would want to do that. In DNN, you have user roles that have different access to different things. The stuff you mentioned (user accounts, creating portals, editing pages) is restricted to users with admin (or host) privileges, but the rest can be accessed by whatever roles you determine to have edit rights. You can set those for each sub folder of your portal (under /portals/{PortalID}/), for each page, and for each module within each page.

You even have the option of securing folders so their content can't be accessed simply by entering the URL into the address bar of your browser, but only via the DNN site (and only if you belong to a security role that has permissions on that folder).

So it should be possible to import EVERYTHING directly into DNN, including all your user accounts (if you don't know the passwords of those accounts, have DNN generate random passwords and send out notification emails to the users with the new URL, their login name and the password). Re-create your pages using DNN and any of the standard or commercial modules, and copy your protected files into a protected folder within the DNN framework.

A completely different approach (but one that to me doesn't make much sense) would be to embed your existing site through an IFrame. But unless you need any of the DNN functionality, I wonder why you'd want to migrate in the first place if you continue using the old application... You could also create a DNN module that does exactly what your old application did, using the old DB. Again, I'm not sure this makes too much sense though...

Hope my reply is making sense. If not I'll be happy to try and clarify.

Vera

 
Previous Previous
 
Next Next
  Forum  General DotNetN...  Configure It! (...  How can I implement .net forms authentication in DNN?
 


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, 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 DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

 


Verndale - Web Development, Support, Hosting
Since 1998, Verndale has helped hundreds of emerging and midsize businesses maximize the value and reach of their web assets with a comprehensive offering of strategy, design, development, search marketing and support services.
www.verndale.com
Overlook Technology
Website Development, DotNetNuke Consulting, Module Development, Portal Management
OverlookTechnology.com
DeutschNetNuke = DotNetNuke in German
DeutschNetNuke provides all DotNetNuke related services in German (and English).
www.DeutschNetNuke.de

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP