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

HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0creating users by adding records directly to the dnn table in dnn4creating users by adding records directly to the dnn table in dnn4
Previous
 
Next
New Post
6/19/2006 6:28 PM
 
Is there a way that I can push records from a db directly into the user tables in the dnn db and actuall create users when doing this?   My developer and I are looking at various modules that will grab records from one db and create users based on those records.  We'd rather skip the module and do it ourselves.  How can I directly create users by simply adding records to the dnn user table?  What actually happens in regards to the db when a user is created? 
 
New Post
6/19/2006 10:29 PM
 
DNN has internal table (Users, Roles, etc.) that have lazy sync to Microsoft membership tables (aspnet_users, aspnet_roles).  The best bet is to use existing DNN code to add users.   Check out web site http://opensource.indyneinc.com/home/DevX/Articles/SingleSignOnforDotNetNuke3/tabid/99/Default.aspx.  This site has opensource project to import user record from external source into DNN.  Maybe with SQL2005, you can call CLR DLL to import users within Store Proc.

Fuji Nguyen
FREE Visitor Hit Counter
Visit opensource.indyneinc.com for detail.
 
New Post
6/20/2006 2:36 PM
 

In DNN4 - it's using the .net 2.0 membership, so it should go through the provider normally. Before getting on DNN, I wrote a web script to shove 15,000+ users into the 2.0 membership tables via the provider, but I haven't played with it within the DNN structure. 

You don't have to use the provider - but then you'd need to be familiar with the encryption routines - doable, but I found it too much digging in to get ahold of when the tool was already built to use.  Just needed to figure it out.  I'll see if I can find it if you like. 

For that SSO link - anyone used it on DNN4 with .net 2.0 membership?  The date, code and DNN 3 reference leads me to believe this is for .net 1.1 version only. 

 
New Post
6/21/2006 1:13 AM
 

You guys need to all be careful in whatever you are working w/ to import users now that dnn 3.3.x/4.3.x have released. Considering the API was rewritten I am not certain there is anything that exists currently that will work without flaws. Since the API is new as well, you really need to focus on the abstract provider to see how it adds users based on the currenly set providers in the web.config. Now, this affects Users, Roles, UserRoles, UserPortals, UserProfile, ProfilePropertyDefinitions, and some of the aspnet_ tables by default. See my blog post for more details, but I really think a new app that is a dnn module or a windows app which references the DotNetNuke.dll is probably the best way to make this happen. I mean, you still have to deal with encryption, and(because its a very new release) nobody has updated to the latest API yet in their modules.

I am just saying there is potential here for a disaster if one thing is not handled properly.


Chris Paterra

Get direct answers to your questions in the Community Exchange.
 
New Post
6/21/2006 10:09 AM
 
Crispy wrote

You guys need to all be careful in whatever you are working w/ to import users now that dnn 3.3.x/4.3.x have released.

I am just saying there is potential here for a disaster if one thing is not handled properly.

You can say that again, our replacement-providers for 3.2.x (which where all outside of the core) need quite a big overhaul to them to work again. The 'old' style was pretty usable (from an extensibility-viewpoint) Now I have to re-invent a lot of stuff (especially in the MembershipProvider ) It's somewhat of a shame the changes to the asp.net2 security-implementation of DNN were not logged. Would have saved my quite some time.
 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0creating users by adding records directly to the dnn table in dnn4creating users by adding records directly to the dnn table in dnn4


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