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

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...User account with same user name but different paswword in differnet child portals!User account with same user name but different paswword in differnet child portals!
Previous
 
Next
New Post
11/15/2008 1:14 PM
 

Hi dudes!

I have started a DNN based project in which I have a main portal and 100 subportals (known as child portals). These child portals have their own content and managment team and I want them to have their own user accounts. Imagine I have mydomain.com/portalA and mydomain.com/portalB and mydomain.com/portalC, in the portalA, a user signs up with "David" username and password "password". Now when a user in portalC or portalB wants to sign up with the same username "David"  but with a different password like "mypassword", he recives a error saying that a user with a same username "David" has already registered. How can I solve this problem? I mean how can I have a unique user table for each child portal?

I will make s suammary here in  the following table:

  PortalA PortalB PortalC
username: David David
David
password: password mypassword otherpassword

I really like to get over this issue. I guess it will help others too because it seems to be vital when you want to have DNN based hosting company.

Thank you in advance.

Soheil Ghassempoor

 
New Post
2/2/2009 11:43 AM
 

I have the same problem. I am using DNN 4.9.1.  Has anyone else run into this?


Aaron Jackson
 
New Post
2/2/2009 12:55 PM
 

Soheil-
USERNAME and its associated USERID value are both treated as unique identifiers for user accounts -- that is, you cannot have two of the same values within a single installation of DNN.  DNN is designed so that a user may leverage a single account across multiple portals.  This is why you get the "user already exists" message when attempting to create a second account "David" with a different password.  Using the same password "links" account "David" across portals -- that is, if you change any aspect of the account "David" on one portal (password, email, etc) the change is immediately reflected on all portals with user "David".

This design can be viewed as both as a good thing and as a nuisance.  On the positive side, this design means that it's difficult for someone to impersonate an existing account "David" on a separate portal within the same DNN instance (because both USERNAME and PASSWORD must match the existing info in order to create/link the account on a new portal).  It's also nice in that the design allows your users to leverage a single account on multiple portals.

On the down side, if your portals are not related then you probably don't want to allow single accounts to be linked across portals.  This design can also generate a lot of confusion for admins who know that there is no account "David" on their portal but who also don't have the knowledge/access to see that account "David" is already created in a different portal (a real problem in hosting environments where different portals have no knowledge of each other).

 
I'm not aware of a module that allows you to do what you want. That's not to say there aren't modules availalbe -- I'm not just aware of any and a quick search on SnowCovered didn't turn up one that does exactly what you're after.
 

Potential Workaround:  Append PORTALID to USERNAME
You could hack around this by using custom REGISTRATION and LOGIN modules that silently appended a portal identifier (PORTALID) to the end of the USERNAME value whenever a user creates an account or logs in or requests a password reminder.  For example, user "David" would become "David.00" for the root portal, "David.09" for the tenth portal created, etc.  This would do what you need and be fully in keeping with DNN conventions (i.e., this solution won't break any modules).
 

Using Core DNN
If you wanted to force this method without using a custom solution you could simply add instructions to your users to append the PORTALID value to their chosen USERNAME during account creation (and to use the appended version when logging in).  You'd also want to add a REGEX validator to the USERNAME field to be sure a user appended the needed ID value.  For the default DNN registration, you'd need to update the file "USER.ASCX" under the "CONTROLS" folder (note:  this file will likely be overwritten when upgrading to newer versions of DNN so you must be prepared to re-apply the change).

I don't generally advocate changing DNN core code.  If you decide to do so, though, you'll also be interested in how to add special registration instructions that won't reappear on the USER CREDENTAILS page for already-created accounts.  See my post on custom registration instructions here:

   Add custom registration instructions to the DNN user account registration page
   http://www.eguanasolutions.com/DNN_Blog/EntryID/3.aspx

  
Third Party Module?
A good compromise (to force appending PORTALID without changing any core code) might be to use a third-party custom-registration module that supports adding REGEX to any field.  One such module is from DataSprings -- see it here:  http://www.snowcovered.com/Snowcovered2/Default.aspx?tabid=242&PackageID=6747

You can see the DataSprings validation options on page 78 of the user manual here.  Having the DataSprings module (or one like it) opens up a range of other features.  For instance, the module supports addition of custom client-side scripting so you could auto-append PORTALID to USERNAME.  Refer to the user manual (150 pages!) for all features.

 
Hope the info helps-
-mamlin


esmamlin atxgeek.me
 
New Post
5/22/2009 11:19 AM
 

How about when you have a handful of portals on a single DNN install; you want to share user base with same credentials across all portals; and you are using AD authentication.

Seems it should be a core host config thing that would allow a single user base without the REGEX hacks and obstacles.


pmgerholdt
 
New Post
5/22/2009 3:05 PM
 

Michael Gerholdt wrote
 

How about when you have a handful of portals on a single DNN install; you want to share user base with same credentials across all portals; and you are using AD authentication.

Seems it should be a core host config thing that would allow a single user base without the REGEX hacks and obstacles.

 
I agree there should be more options for cross-portal user management / config.  Sharing user accounts across portals should be easier than having to manually re-regsiter the same info on multiple portals on an account-by-account basis.
  
Regarding your scenario of a handful of portals on a single install sharing users:
This can be done fairly easily with a trigger on the USERPORTALS table whereby the trigger auto-adds new entires for every portal when a user is added for any portal.  Of course, "easy" assumes you know enough SQL to construct and deploy the appropraite trigger...
 
-mamlin


esmamlin atxgeek.me
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...User account with same user name but different paswword in differnet child portals!User account with same user name but different paswword in differnet child 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