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

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Unique user idUnique user id's across portals
Previous
 
Next
New Post
9/12/2009 1:06 PM
 

I have run into an interesting situation that I think is a bug in DNN 5.1.1 and am looking for guidance.

I have a system with multiple portals.

If I create a user with the same user name and password in two different portals, DNN allows this.  If I try to create the users with different passwords, the system rejects the user creation because 'userid is in use'.  This seems incorrect to me.  The userid is unique for the portal.  Is there a configuratin (or somethign else) that I need to look at / change to allow portals to have their own 'space' for user names?

 Update:  I found this thread thread and it seems that this issue was raised about a year ago.   http://www.dotnetnuke.com/Community/Forums/tabid/795/forumid/89/threadid/205850/scope/posts/threadpage/1/Default.aspx

However, I'm not sure I'm understanding what is the correct behavior should be.  It doesn't seem unreasonable to me for 2 portals to have overlapping user names. 

for example, a host has intranet portals for acme.com and homedepot.com, the user name  corporate standard for each company is first letter of first name + last name.  It is not unreasonable to expect each of the companies to have a tjones.  the admin for acme.com to creates tjones, the admin for homedepot cannot...  is this right?  Imagine that support call....  

Caller: hi I just tried to create my first user and it tells me the login name is in use....  
Helpdesk: this is becuase someone else from another company / portal already created a user with that name

Note, in my web.config file requiresUniqueEmail=false as there are test / demo portals and users have multiple user ids for working with different roles, but they all have the same email address so that they can see the emails generated.

Any insight / suggestions would be greatly appreciated.

 

Thanks!

 
New Post
9/13/2009 8:26 AM
 

All postals of an installation use the same user table with username, email address, password, First Name and Last Name. This user gets a user id.

Besides, each portal creates an entry for table userportal with userportalID and portal status, when the user registers or is registered for this portal.

This basic design allows for easy sharing of accounts, with the disadvantage, that user names need to be unique for all portals.  If you need separate user bases (e.g. in hosting scenarios), install multiple instances of DNN.


Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
9/13/2009 9:01 AM
 

At least on my system, each user/portal registration (including the duplicate ones) results in separate rows in both the users  and the userportals table.  So it seems that the accounts aren't really shared.  the only thing that is causing sharing is the odd login behavior of picking 'wrong entry' from the users table.  This seems to be a bug to me.

If there was only one row in the users table with multiple rows in userportals table, then I would buy your argument.

It also seems that with the data model as it stands, either behavior could be supported.

  • Login needs to be fixed to respect the portal id.  Then if there is only one row in the users table you get the shared account behavior, if there are 2 rows, the accounts are separate.
  • A configuration parameter should be added. if set, duplicate accounts are treated as independent, portal specific accounts, if not set, then they're shared.
  • account creation would need to be updated to respect the configuration parameter
  • If account sharing is enabled, then all items in the account need to be identical, if not, then it really doesn't matter.
  • Login should ignore the parameter, it only drives off what it finds in the tables

I would agree that this needs to be site wide behavior (perhaps overridable by a super user).

 

I'm not sure that creating a DNN instance for each customer is a workable solution.  The administrative overhead of setup and ongoing maintenance would be prohibitive.  In addition, each instance consumes additional server resources, requiring additional servers and leading to excessive operating overhead.

 
New Post
9/13/2009 9:26 AM
 

please be aware that DNN still uses MS membership component, which stores its data in ASPNET_* db tables and is referred by username. This is an additional challenge, if you want to change the behaviour.


Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Unique user idUnique user id's across portals


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