Sign In  |  Register
 
 DotNetNuke Powered!
DotNetNuke Support Forums

OK to edit UsersPortals and UsersRoles tables?

Rate this topic:

Please Register to post a reply.
Another benefit of registration is the ability to subscribe to and recieve notifications of new posts.

AuthorMessages
adoucette
Posts:58



03/06/2008 7:09 AM  

Hi John,

I'm looking at adding users from some of the child portals on our site to roles on our parent portal. After looking through the DB, it looks like the UsersPortals and the UsersRoles tables are the only ones I would need to make changes in.

Can you think of any potential problems of just:

  1. adding the child portal user's UserID to a new record with the parent portal PortalID in the UsersPortals table
  2. adding a record for each RoleID that the UserID is to be added to on the parent portal in the UsersRoles table

I've manually performed the above 2 steps on a local install and it seems to work just fine. I've been able to log into the parent portal as that user and have been able to go back and forth between the portals seamlessly. No problems so far.

Can you think of any potential problems with this approach? Security problems that I'm not thinking of?

Thanks for your insight,
Ari

John Mitchell
Posts:3559



03/06/2008 7:19 AM  
Hi Ari,
I don't see any problems with doing that as far as security. You may have to revisit it if they change the membership in DNN though. What you are doing is actually how it worked in the DNN2 days, and in DNN4 they moved back to using more of the DNN tables, but I don't think they intended for users to be able to be shared across portals like that.

The good news is that since they are already users you do have them in the aspnet_* membership tables.

I honestly didn't know it would be that easy to add them to other portals.
adoucette
Posts:58



03/06/2008 7:56 AM  
Posted By John Mitchell on 03/06/2008 7:19 AM
The good news is that since they are already users you do have them in the aspnet_* membership tables.

 I've looked in the aspnet_ tables and I don't find any columns having to do with portals or roles. So hopefully I won't have to mess with them.

Posted By John Mitchell on 03/06/2008 7:19 AM
I honestly didn't know it would be that easy to add them to other portals.

 I honestly still don't know if it is all this easy... That's why I'm asking

Of interest here, I did by the DNNMasters "Multi-Portal User Sharing Extreme" module for this purpose. I was really hoping that a COTS module would do it. Unfortunately, it has so many bugs and security problems that I am looking at how I might accomplish it with a simple custom module instead. I just can't risk security problems b/w portals.

PLEASE NOTE: They are working on fixing the problems I encountered. So, they at least get a positive review for that.

I wonder if the dnnmasters folks might know something I don't about the DNN portals, roles, and users? The dnnmasters module is really complex. It even replaces the core dnn membership provider and requires big web.config changes to do it.

So, again, maybe they know something I don't?

adoucette
Posts:58



03/06/2008 10:15 AM  
Posted By John Mitchell on 03/06/2008 7:19 AM
You may have to revisit it if they change the membership in DNN though.

I don't have any experience with DNN 4.6+ yet. DNN added membership providers, like LiveID somewhere along the way. Do you know if these changes break what I've done? (or maybe I should install dnn 4.8.1, make a log-in with a standard dnn login and a LiveID and see what the db tables look like)

 

John Mitchell
Posts:3559



03/06/2008 10:31 AM  
Those new Providers didn't change the underlying membership tables that I know of, but testing it out is a good idea.

The aspnet_Roles table does have your roles, but the records you added to the DNN UserRoles table uses those same roles.

I think the DNNMasters module does a lot more with the management aspect including import and export, and adding new users.
It has also evolved through the changes to the membership in DNN so it may have to take more into consideration than just the version of DNN that you are using.
adoucette
Posts:58



03/06/2008 10:38 AM  
Posted By John Mitchell on 03/06/2008 10:31 AM
I think the DNNMasters module does a lot more with the management aspect including import and export, and adding new users.
It has also evolved through the changes to the membership in DNN so it may have to take more into consideration than just the version of DNN that you are using.

I hope that's all it is. I hope the complexity only has to do with the fact that it works for multiple versions of DNN. I'd hate to think I was missing something really important here...

The dnnmasters portal user sharing module doesn't do import, export and adding new users, AFAIK. They sell an other module for those things.

Please Register to post a reply.
Another benefit of registration is the ability to subscribe to and recieve notifications of new posts.

Forums >DotNetNuke Support >General-DNN-Help > OK to edit UsersPortals and UsersRoles tables?



ActiveForums 3.7
Visit our Store for great DotNetNuke Modules and Skins
DotNetNuke CSS Menu 3.3.4 (single use)

Item codeCSSNM33SU
AuthorJohn Mitchell
Base Price$25.00
Product Information 
DotNetNuke CSS NavMenu 3.3.4 (Developers)

Item codeCSSNM33DEV
Base Price$149.00
Product Information 
DotNetNuke Performance Caching & Compression - PageBlaster 3.3.2 - Professional Edition

AuthorJohn Mitchell
Base Price$25.00
Product Information 
XDAkuna (Web 2.0 CSS XHTML Skin)

AuthorNina Meiers
Price$49.00
Product Information 
XDAmarina (CSS & Flash Skin)

AuthorNina Meiers
Price$49.00
Product Information