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

HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...User authentication across child portals?User authentication across child portals?
Previous
 
Next
New Post
2/22/2007 3:41 AM
 

Hi,

I know the modules of DNN masters about sharing users across portals. I would like to share users across child portals. However, since there are many users (> 200.000), I would like to avoid filling tables with role and user information. Is there a way to change the default.aspx of the child portal in such way that it authenticates a user from one child to another child portal? If not, how can I allow users to switch smoothly? Which tables need to be filled in? UserPortals table? And copy roles and duplicate users in the records of UserRoles ? Or it the sharing more complicated than this?

Any advice would be greatful,

Jelle

 
New Post
2/22/2007 4:06 PM
 
I need this as well. I have used the same module in DNN 3.x and have many issues. I thought this feature was addressed in 4.3 though.
 
New Post
2/22/2007 4:33 PM
 
 
New Post
3/10/2007 8:23 PM
 

The post you refer to does not tackle this problem completely. Indead the username can only exists once in the complete DNN installation. The ASP membership takes care of the username + password. However, to give a user access to a particular portal you must create an entry in DNN_PortalUsers for every portal:

Sample: Userid, portalid, id of dnn_portalusers, create date, authorised

70882 7 35 3-7-2007 0:00:00 True
70882 0 36 3-7-2007 0:00:00 True
70882 9 37 3-7-2007 0:00:00 True

If you do this, another side effect may occur (or maybe because I have been playing around with profile settings as well): the username, pwd, first and lastname and email stay the same in every childportal, however, the user profile not. So for every child portal the user data is different. That is not what you want. Or you do not want to use the dnn profile...

I am interested in the custom asp membership provider as is given above. I think of writing also my own. Maybe somebody wants to jump in? I think of next:

  1. A fixed "main portal" is indicated by an additional column in Portals table. So every child has a "main portal" PortalId in this colum MainPortalId
  2. If properties are looked up, they are retrieved from the "main portal". This is done through this additional column "MainPortalId". Also storage is done there.
  3. GetUserByName and GetUser are looking up this main portal
  4. In the table UserPortals it is best to keep one entry since otherwise the user admin will not work.

Above solution will bundle users to several portals. I tried to be somewhat cruel and changed "GetUserByName" and "GetUser" to get a "single login" feature in DNN. This works fine:

ALTER PROCEDURE [dbo].[V4A_DNN_GetUserByUsername]

 @PortalId int,
 @Username nvarchar(100)

AS

SELECT
  UserID
 ,0 AS PortalId --@PortalId
 ,Username
 ,FirstName
 ,LastName
 ,DisplayName
 ,IsSuperUser
 ,Email
 ,AffiliateId
 ,UpdatePassword
 ,COALESCE(Authorised, 1) AS Authorised
FROM
 V4A_DNN_vw_Users
WHERE  Username = @Username
-- AND    (PortalId = @PortalId OR IsSuperUser = 1 OR @PortalId is null)

ALTER PROCEDURE [dbo].[V4A_DNN_GetUser]

 @PortalId int,
 @UserId int

AS


SELECT
  UserID
 ,0 AS PortalId --@PortalId
 ,Username
 ,FirstName
 ,LastName
 ,DisplayName
 ,IsSuperUser
 ,Email
 ,AffiliateId
 ,UpdatePassword
 ,COALESCE(Authorised, 1) AS Authorised
FROM
 V4A_DNN_vw_Users
WHERE  UserId = @UserId

 

However, it does have the same problem as by the other solution with additional entry in PortalUsers. So I guess the profile it collected with the portalId instead of the Portalid of the user...or the sp doing this needs similar modification as above. Changing GetProfile does not have the required effect. It seems the profile is first collected for the portal itself and then the profile of a user is copied in. However, the propertydefinitions do not match in that case :-( Who helps me out? I am interested in the custom asp provider since this are considered: "core modifications".....
 
New Post
3/26/2007 4:19 PM
 
I heard somewhere that this is on the roadmap for 4.5 or 4.6.
 
Previous
 
Next
HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...User authentication across child portals?User authentication across 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