Friday, March 12, 2010 Register  Login
RSS Feeds
Categories
  
Blog Archives
  
Blog

DotNetNuke user manager - Winform App

I had a LOT of people ask me about how to recover/reset passwords in a damaged DotNetNuke (DNN) installation. I wrote a quick Winform app to do just this. It's fairly crude, but it get things done. I cleaned up the code a bit and wrote intructions in the read me file.

Here is the opening screen:

User manager start screen

Here is the screen after you press the Get Users button

This is what it looks like when a password is ok. The password will show up in green.

This is what it looks like when the password is damaged and can't be recovered through the ASP.NET Membership APIs. The Reset Password will reset the password in the DotNetNuke database, then the UI will display the randomly generated password you can email to your user.

The zip file contains the source. It is a Visual Studio 2008 C# project.

Please read the "Read Me.txt" file, inside the zip file, for how to setup the config file. This program will not work if the config file is not setup correctly! I didn't want to spend time creating a wizard to create the configuration file.

Internet Explorer Internet Explorer users - Please right-click on the links below and select "Save Target As"

DNNUserManager_source.zip

DNNUserManager_binaries.zip

posted @ Tuesday, July 15, 2008 7:13 PM by Hector Sosa, Jr

Previous Page | Next Page

COMMENTS

Source won't download. Can you look into this?

Thanks!!

posted @ Wednesday, July 16, 2008 12:56 PM by Dave


Yes, it's Internet Explorer that has problems with the links. Just right-click on the link and select "Select Target As" to get the zip files.

posted @ Wednesday, July 16, 2008 1:43 PM by Hector Sosa, Jr


This looks like it may be a useful utility for anyone that has ever run into issues with getting passwords reset for some accounts.

posted @ Thursday, August 21, 2008 8:23 PM by Sam MacDonald


i just downloaded it and tried to use it. I have configured it per your readme.txt file. It creashes on Membership.Provideer.GetAllUsers with an exception. The internal exception says {"Request failed."} but the ex.Message is "An error occurred creating the configuration section handler for system.web/membership: Request failed. (Z:\bramoin\DotNetNukeExample\bin\Debug\DNNUserManager.vshost.exe.Config line 9)". Line 9 in this config file is: .
Any help is appreciated.
thanks,
bramoin

posted @ Monday, April 20, 2009 4:16 PM by bramoin


bramoin,

This looks like a security exception. Do not run this from a mapped or UNC drive. You need to run this from a drive that is local to your machine. I don't know enough about code trust issues to try to troubleshoot this.

posted @ Tuesday, April 21, 2009 12:29 AM by Hector Sosa, Jr


Hector,
Can you do this same thing using the DotNetNuke.dll? How does this code know to read the encrypted passwords inside the DotNetNuke database of users?
thank you,
bramoin

posted @ Tuesday, April 21, 2009 10:57 AM by bramoin


Hector,
You were right about the mapped drive, i was running the application from a mapped drive. It works but it is pulling SQL Server users and not the DotNetNuke users.
thank you,
bramoin

posted @ Tuesday, April 21, 2009 11:13 AM by bramoin


"Can you do this same thing using the DotNetNuke.dll? How does this code know to read the encrypted passwords inside the DotNetNuke database of users?"

No, you can't use DotNetNuke.dll. DotNetNuke uses the ASP.NET Membership APIs. This is a code framework that stores its data in SQL Server, or any database that supports it.

"It works but it is pulling SQL Server users and not the DotNetNuke users."

Unless you have the wrong connection string in the config file, you are seeing the DotNetNuke users that are stored in the database as part of the ASP.NET Membership framework. Those are the tables that start with aspnet_. Don't try to edit those tables by hand, and that can seriously screw up the data in there.

posted @ Tuesday, April 21, 2009 1:38 PM by Hector Sosa, Jr


Hector,
What are the specific configuration section that is required for this program to pull dotnetnuke users?
thank you,
bramoin

posted @ Tuesday, April 21, 2009 3:37 PM by bramoin


Here is what my App.config has in it for membership:







What do i need to change and to what in order to make the program get the DotNetNuke users?
thanks,
bramoin

posted @ Tuesday, April 21, 2009 3:41 PM by bramoin


"What are the specific configuration section that is required for this program to pull dotnetnuke users?"

Yes, it's the ones I pointed to in the readme file. The connection string in those sections will point to the database that your installation to DotNetNuke is using. That's also the location of your users. This means that the users you are seeing are actually the users in your DotNetNuke installation.

Don't post configuration details in public. Instead, if you need to, please email them to support@systemwidgets.com

posted @ Tuesday, April 21, 2009 4:10 PM by Hector Sosa, Jr


Thanks!

posted @ Sunday, December 13, 2009 6:51 PM by Vitaliy


Name (required)

Email (required)

Website

Enter the code shown above in the box below

Terms Of Use | Privacy Statement | SystemWidgets
Copyright 2002-2010 by SystemWidgets
Google Analytics Alternative