Products

Solutions

Resources

Partners

Community

About

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 ForumsAuthenticationAuthenticationmultiple portals and usernamesmultiple portals and usernames
Previous
 
Next
New Post
3/29/2008 6:52 AM
 

I am just starting with DNN and will have a multiple portal setup. A few users (me and my developer coleagues) will need access to all portals, but most (our clients) will need access to just one portal.

I am a little confused so far in that I have set up 2 test portals and find that the admin username can access both portals. I expected the admin username to be unique for each portal, but it isn't.

On checking the database schema, it turns out that a username is unique to the whole DNN instance, not each portal.

This scares me as I am sure my clients will occassionally wnat to register with common names as usernames - bill, bob, sally etc, and that will mean only the first person to register will get their desired handle. Whilst I could say 'tough, one of my other clients has got that username before you', this isn't going to wash with many clients who expect a portal unique to themselves.

Should I modify DNN by adding a portalid column to the Users table primary key and updating it with the current portalid? Or is there a better solution?

 
New Post
3/30/2008 7:59 AM
 

On further investigation, according to Figure 7-6 in the Professional DotNetNuke 4 book by the core team, this table (Users) has the PortalId as a column, thus allowing the potential of a multiple alternate key on PortalID,UserName. My installation doesn't have this column in its Users table. Is this an installation issue, or has it been removed from the table since the book was written?

I appreciate the issue might be synchronization with the Membership Provider which doesn't understand multiple portals in the same instance of an application, in which case I guess there is no solution to this behaviour of unique usernames being enforced across all portals in the same DNN instance.

 
New Post
3/30/2008 2:22 PM
Accepted Answer 

It's been removed from the table since the book was written. If you look in the database you'll see another table called UserPortals or something similar (I don't have access to a copy of the database at the moment) that has the fields UserID, PortalID and one other field.

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Provider and Extension ForumsProvider and Extension ForumsAuthenticationAuthenticationmultiple portals and usernamesmultiple portals and usernames


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