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

HomeHomeDevelopment and...Development and...Getting StartedGetting StartedAdd Users From External Source - Password EncryptionAdd Users From External Source - Password Encryption
Previous
 
Next
New Post
7/22/2010 12:46 PM
 
I need to create a tool to import users from an external source into the DNN system. I'm struggling to understand how to encrypt the passwords in the format that DNN expects (DES, right?).

Ideally this would be a web service that our external customer application can call. That said - I want it to exist outside of the DNN code base and perhaps even on a different server than the DNN installation.

So - how do I leverage the DNN password management code in my project? I'm including the DotNetNuke.DLL as a reference in my project, but that isn't enough. I realize that some settings (encryption keys and such) exist in the DNN web.config file. I was hoping I could include these settings manually in my code.

I'm using the following code, but it comes back with an encrypted value that doesn't match my PASSWORD entry in the ASPNET_MEMBERSHIP table in DNN.

//tried using both the validationkey and decryptionkey values from my DNN installation's web.config file here
string SiteKey = "abc123";

DotNetNuke.Security.PortalSecurity DNNPortalSec = new DotNetNuke.Security.PortalSecurity();

//I'm using the plaintext version of my DNN password as the 2nd parameter here
string thePassword = DNNPortalSec.Encrypt(SiteKey, "abc123");

return thePassword;

Is what I'm trying to do possible? What am I overlooking? Am I using the wrong key?

Thanks in advance for any insight you all might be able to offer,

Greg

 
New Post
7/22/2010 1:54 PM
 
You should start by taking a look at the create user code in DNN.  Also, the passwords are generated by the Membership provider.
 
New Post
7/23/2010 3:52 AM
 
have a look at iWeb (iweb.adefwebserver.com)

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
Previous
 
Next
HomeHomeDevelopment and...Development and...Getting StartedGetting StartedAdd Users From External Source - Password EncryptionAdd Users From External Source - Password Encryption


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