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

HomeHomeDNN Open Source...DNN Open Source...Provider and Extension ForumsProvider and Extension ForumsAuthenticationAuthenticationUser Swap Skin ObjectUser Swap Skin Object
Previous
 
Next
New Post
12/21/2007 1:11 PM
 

 

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
 
Next
HomeHomeDNN Open Source...DNN Open Source...Provider and Extension ForumsProvider and Extension ForumsAuthenticationAuthenticationUser Swap Skin ObjectUser Swap Skin Object


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