Login | Register  
View Article

Current Articles | Categories | Search | Syndication

Retrieving login data for DotNetNuke

Well, I had a hair pulling session trying to recover the passwords on this site. Both my admin and host paswords got hosed, so I couldn't just login and fix them.

I first went Googling to find a winform app to help with this problem. Well, all the solutions were just modules to install on your DotNetNuke installation. Since I can't even login as host, this approach is just totally useless. Thankfully, DNN uses the ASP.NET 2.0 Membership Providers.

So, I started with Membership.Provider.RetrievePassword(). Oops, "Bad Data". Crap! I tried other account passwords with the same result. Double-Crap! I modified my little winform app, to now reset passwords. This time I used Membership.Provider.ResetPassword(). Got a new password for host, and I was able to login now. YES! I'm using .NET 2.0 for this winform app.

So if you want to get this working, here is what you need to do:

Make sure that you include the following sections from your DNN's website web.config file:

  • connectionStrings
  • system.web

You only need the membership and machinekeys sections inside system.web.

Import System.Configuration and System.Web into your project. All of the needed API calls will be under Membership.Provider namespace. You'll find a lot of samples on how to use on Google.

posted @ Monday, June 16, 2008 11:05 AM by Fastalanasa

Previous Page | Next Page

COMMENTS

Great! Can you provide the file?

posted @ Friday, July 11, 2008 8:42 AM by joe


Hi Joe!

I need to clean up the code, and write a read me file. I'll post a new blog entry with a download, when I get this done. I'm hoping to have it done by Sunday July 13th.

posted @ Friday, July 11, 2008 3:10 PM by Fastalanasa


I haven't forgotten about this. I just haven't been able to get around to it yet. I'll post a blog entry once I get it done.

posted @ Monday, July 14, 2008 11:14 AM by Fastalanasa


Click here to post a comment
Copyright 2007-2008 by WheelMUD  | Terms Of Use | Privacy Statement