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

HomeHomeDNN Open Source...DNN Open Source...Provider and Extension ForumsProvider and Extension ForumsAuthenticationAuthenticationPre-create AD usersPre-create AD users
Previous
 
Next
New Post
3/28/2012 2:33 AM
 

Is there a way to precreate some AD users on the dnn site without asking them to login/logout?

We have a couple (50 +/-) users we have to setup permissions and roles for and I'd prefer not having to ask them all to do the login/logout just for this.

Any ideas?


Vicenç Masanas
Banyoles, Girona - Spain

Disgrafic.com    PSD to DNN
 
New Post
3/28/2012 8:22 AM
 

If you find one, I'd love to know.  I looked at attempting to modify the database a couple of years ago, but couldn't figure out how to add users (that were already on a different portal on the same install) to a new portal.  There are several database tables that need to be touched to make that happen.

 

 
New Post
3/28/2012 10:47 AM
 
I haven't tried this so it would need to be tested first but, theoretically, you should be able to manually create the account in the DOMAIN\Username format. I think as long as the username and email are correct it would work because the password that's stored in DotNetNuke (as far as the provider is concerned) is really just a placeholder. It's only there because a user needs to have a password but the provider always verifies against the AD for the password.

Dan, it's still a fair amount of work but in your case you should be able to write a sproc that gets the users you want, the portal id that you want add them to, and then add a record into the UserPortals table. I don't have my source code handy but I have to do something similar in the provider for situations where the user belongs to another portal. The user object is already there, it just needs to be assigned to the new portal.
 
New Post
3/28/2012 1:32 PM
 
Mike Horton wrote:
Dan, it's still a fair amount of work but in your case you should be able to write a sproc that gets the users you want, the portal id that you want add them to, and then add a record into the UserPortals table. I don't have my source code handy but I have to do something similar in the provider for situations where the user belongs to another portal. The user object is already there, it just needs to be assigned to the new portal.

 If you can find that information, please let me know how to do it (no rush).  Right now everytime I create a portal for a user, I have to create it, send the user an e-mail with the link, wait for them to click on it (sometimes takes weeks), and then I can add them in as an administrator.

 

 
New Post
3/28/2012 1:52 PM
 
Just did a quick google search before lunch. Mitchel Sellers has a blog post on creating a user via SQL.. http://www.mitchelsellers.com/blogs/2007/05/14/creating-a-standard-dotnetnuke-user-via-sql.aspx. In your case the user already exists but if you look at the last two sql statements you should be able to use those to add the user to the portal and make them an administrator (changing the registered user role to the administrator role)
 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Provider and Extension ForumsProvider and Extension ForumsAuthenticationAuthenticationPre-create AD usersPre-create AD users


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