Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

telerik -- supercharge your DNN websites
  Ads  
r2i.ntegrated
 


  Sponsors  

Meet Our Sponsors

Red-Gate Software
MaximumASP
SourceGear - Tools for Developers
.: CounterSoft :.
telerik
ExactTarget email software solutions
 


DotNetNuke Forums
 
  Forum  DotNetNuke® Pro...  Authentication ...  User Swap Skin Object
Previous Previous
 
Next Next
New Post 12/21/2007 10:11 AM
User is offline John Hoskins
65 posts
10th Ranked


User Swap Skin Object 

 

Switch User Skin Object

 

This is a DNN Module that I have developed for use at work and would like to share it with the DNN community.

This module allows a user with Edit/Administrative access (this will not work for host/super user accounts) to have a second user account without Edit/Administrative access and switch between the two accounts.  This is a skin object which can be placed anywhere on the skin.  It will only display if the user has Edit rights for the tab.  This logic is in the SwitchUserDisplay stored procedure and can be refined to just administrators is desired.

The way it works is by renaming the current user's login id and then redirecting through the AD authentication process.  Since the username no longer exists, a new user will be generated.  Switching back, the new user name will be renamed and the original user name will be restored.  After another trip through the AD authentication process, the original user will match and will be the current user.

Since the second user is a full user, you can give it any Roles you want (while in Admin mode) and test the page as a user with those Roles.

* Note:  For some reason the Module install is failing on the SQL.  The SQL runs correctly through the DNN Host SQL interface or through SQL Manager.  You may need to run the SQL sperately if it fails on install.  If you have any thoughts on why this is happening, I would like to hear them...

I use a pure AD environment without any form login and have not been able to test this in other environments.  Please test it in your test environment before putting it into production.

If you use this module, give me some feedback on how it is working for you or if you have any issues with it.  Thanks.

 
Previous Previous
 
Next Next
  Forum  DotNetNuke® Pro...  Authentication ...  User Swap Skin Object
 


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, 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 DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

 


Alliance Systems & Programming Inc
Alliance is not just our name... it's how we do business. We partner with our clients, learning their business processes and standards and then applying our expertise to help them improve their workflow and profitability.
www.Alliancesys.com
Customer Connect
Customer Connect provides cutting edge solutions that deliver sales, marketing and customer service results.
www.customer-connect.com
TechNexxus
Business process and technology sourcing solutions delivering superior people, process and value. We have used, and continue to use, DNN successfully in numerous client projects to deliver exceptional value. We are proud to support the DNN team and community.
www.technexxus.com

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP