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...Does anyone have a SQL script to help add to UserPortals table?Does anyone have a SQL script to help add to UserPortals table?
Previous
 
Next
New Post
9/26/2006 10:55 AM
 

I found, quite by accident, that if I add UserID, PortalID, and Authorised to the UserPortals table it effectively allows SSO for the usersID I add.

Does anyone have a scipt for SQL that will do this automatically?  I just need to give access to 700+ user accounts to a newly created child portal. 
Thank you in advance.

 
New Post
9/26/2006 11:44 AM
 

so if you add a user to userportals table it allows the user to log into multiple portals?

Make sure youve tested this thouroughly. 

Instead of doing a sql script, what I would do is code a page at the root like adduserportals.aspx and user the dnn objects and prebuilt stored procs and code to do this for you.


DotNetNuke Search Engine
ASP.Net Search Engine
Email me to add your favorite sites to the search List.
 
New Post
9/26/2006 1:27 PM
 

"so if you add a user to userportals table it allows the user to log into multiple portals?"

Yes, if I add the associated UserID (inherited from users table) and assign a PortalID (inherited from portals table) then add a "1" to the authorised column the table will auto populate UserPortalID and CreatedDate columns.  I can then logon to multiple child portals with the same ID.  I tested this with 3 separate ID's adding them to 3 child portals
Have a look at Nik Kalyani's blog on the subject.  http://www.devtao.com/2006/08/09/SSO+With+DotNetNuke+4x.aspx

So what your suggesting is a module to do this, and it doesn't sound as simple as executing a script with querry analyzer.  BTW I am using DNN 3.x

 
New Post
9/26/2006 3:28 PM
 

O thats very kewl, thanks for the info.

No, im not suggesting a module, just a web form. but a button on it, some text boxes.

in the button click event put some code that inserts into the userportals table based on the parameters in the text box.

 


DotNetNuke Search Engine
ASP.Net Search Engine
Email me to add your favorite sites to the search List.
 
New Post
9/28/2006 4:23 PM
 

Chris Woods has a post here and if I am reading this correctly he explains how to add all users to all child portals.

http://www.dotnetnuke.com/Community/ForumsDotNetNuke/tabid/795/forumid/89/threadid/47304/threadpage/2/scope/posts/Default.aspx

The problem I have is that I don't 100% understand how this is implemented.  If anyone wants to chime in I would appreciate it.  I am looking forward to testing this functionality.

 
Previous
 
Next
HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Does anyone have a SQL script to help add to UserPortals table?Does anyone have a SQL script to help add to UserPortals table?


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