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

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Change MachingKeyChange MachingKey
Previous
 
Next
New Post
5/14/2007 10:41 AM
 

If you want to start over with the users then you can change the machineKey without too much trouble.
What I would do in that case is change the Keys, then register a new user, then go into the Database and copy the password and password salt from the new user record over to any other users that you want to keep.
This will allow you to log in to the other user accounts with the new password for the new one you created using the new keys.

To answer the question about what exactly the machineKey is, here is a little more detail:

The machineKey is randomly generated by dotnetnuke when you first install it.  The code looks for a node in the web.config called <InstallationDate and if it is not there then DNN will change the default keys.

The machineKey is then used to encrypt passwords that are stored in the Database.  
If you loose the keys or change the ones that were used for encryption then DNN will not be able to Decrypt the passwords when checking for valid password during authentication.


DotNetNuke Modules from Snapsis.com
 
New Post
5/14/2007 10:42 AM
 

Is there too many accounts to use the User Accounts tab on the admin menu to delete 1 at a time ?

 You could try finding the delete user stored procedure in the database (to see what fields need to me removed) and maybe just write an sql statement to delete all users in a certain group to speed it up abit and allowing you to avoid the admin and host accounts

 
New Post
5/14/2007 9:40 PM
 

John...how does this work with upgrading?  Along with copying over the machine key from the old web.config to the new web.config, should you also copy over the <InstallationDate> node from the old web.config?  Is there any ill effect, either short or long-term from not doing so? I would assume that in an upgrade DNN would not find an <InstallationDate> node since a new web.config is generated during the upgrade. But an upgrade is an upgrade, not an install.  Does this make sense? Maybe we need a new node in the web.config <UpgradeDate>.  Someone might want to keep track via the web.config of their original install date and subsequent upgrades.

Paul

 
New Post
5/14/2007 11:08 PM
 

The only reason there is an InstallationDate node (so far) is because Shaun needed a way to flag a new install.  In an upgrade you must carry over your InstallationDate node or the machine keys will be changed and you will not be able to log in.

Often people will upgrade by starting with the new web.config and copying over the changes they have made from their old config. But another way is to keep your original config and add any new changes from the release.config.

There's more information on how to do an upgrade here:

How To: Upgrade DotnetNuke


DotNetNuke Modules from Snapsis.com
 
New Post
2/21/2008 12:08 PM
 

John,

I have been asked to write a application and the people I work for want the user cridentials to carry over from the DNN database.  I know where the password and password salt are located. I  even know the machine key.  I have been looking for the DNN 3 encryption and decryption function so that I can do a mass decrypt on all passwords.  Can you help me out?

Thanks,

Tim

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Change MachingKeyChange MachingKey


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