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.0Decrypting User Password in DNN4.5.3Decrypting User Password in DNN4.5.3
Previous
 
Next
New Post
9/23/2008 11:43 AM
 

I need to maintain password history. I need to check while change password, whether the new password has been used in last 3 times.

Is there any way to do this in DNN 4.5.3?

How can i decrypt the password, so that i can verify the password in password history?

 

Thanks in advance,

Siva

 

 
New Post
9/23/2008 12:36 PM
 

Siva - the product by default does not have the password history feature you're looking for. If you're comfortable overriding the membership provider you could possibly do this but you'd still need to modify the schema to store the last three passwords in some table. DNN uses the membership provider model from Microsoft so it's pretty straightforward (to some extent :)) to swap out the provider and replace it with your custom one which would have the logic of determining the last three passwords, etc.
Sanjay

Another way would be to modify the existing provider (that comes with DNN) but the problem with this (down the road) is that if you upgrade to a newer version of DNN, you'd have to replicate those changes again.
 


AcuitiDP - Oracle Data Provider for DotNetNuke
 
New Post
9/24/2008 12:53 AM
 

Thanks sanjay.

I've created a seperate table for storing the password history. But now, i need to know how to decrypt the password from that table. what is the function used to decrypt password and what is the key used?

 
New Post
9/24/2008 12:54 PM
 

Siva - the keys are stored in web.config (machine keys). If you look at the Membership class (via Reflector), you should see a couple of calls in the system.web.security.membershipprovider namespace which should give you a clue as to which one to use. If memory serves me right there was a decryptpassword or unencodepassword which I had to override in my oracle version...

Check it out and let me know if you still need help.
Sanjay


AcuitiDP - Oracle Data Provider for DotNetNuke
 
New Post
9/24/2008 1:34 PM
 

sivam wrote
 

Thanks sanjay.

I've created a seperate table for storing the password history. But now, i need to know how to decrypt the password from that table. what is the function used to decrypt password and what is the key used?

Storing passwords as plaintext in a custom table creates FAR more of security risk than does preventing a user from using their last three passwords.  Be careful here!

Far better would be to hash all of your passwords, and then just store the last three hashes.  You'd then just need to do a simple string comparison of these values without worrying about decryption.  If you must use encryption, encrypt the new password and compare (instead of decrypting and comparing).

I'm not generally a fan of one-off security extensions, so make sure you really need this functionality.

Brandon


Brandon Haynes
BrandonHaynes.org
 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Decrypting User Password in DNN4.5.3Decrypting User Password in DNN4.5.3


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