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.0Locate source code to allow host to access all portals after loginLocate source code to allow host to access all portals after login
Previous
 
Next
New Post
2/6/2008 11:21 PM
 

Host account can login to a portal and access other portals without the need to re-login.  For example, a host account logins the parent portal “acme.com”.  The host account then visits the child portal “acme.com/child”.  DNN does not prompt host account to login to see the Host menu.

If a regular user login the parent portal “acme.com” and then try to access the child portal “acme.com/child”, DNN will require user to login the child portal.

Could someone please point out where in the source code DNN magically allows host to bypass login to the child portal but requires regular user to login (even if the regular user already login the parent portal)?

Thanks in advance


Fuji Nguyen
FREE Visitor Hit Counter
Visit opensource.indyneinc.com for detail.
 
New Post
2/8/2008 8:45 PM
 

hostuser status is checked via the IsSuperUser flag in the system, I recommend you search for that string (the places it's in have changed a lot recently due to authentication code being refactored so it's different version to version)

Cathal


Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
New Post
2/8/2008 9:45 PM
 

Also, if what you're after is some sort of "single sign-on" then there are at least a couple of addon modules that will open up cross-portal logins without altering the core.


Eric Swanzey
www.swanzey.com
 
New Post
2/9/2008 12:11 AM
 

First thanks for your responses.  The automatic logoff has been an issue for users who are using my free Visitor Counter module.  The issue was reported at these links

http://opensource.indyneinc.com/home/Support/tabid/78/forumid/5/threadid/336/scope/posts/Default.aspx

http://opensource.indyneinc.com/home/Support/tabid/78/forumid/5/threadid/79/threadpage/1/scope/posts/Default.aspx

In the multiportal enviroment, the counter module caused user logoff when a login user visited another portal.  The logoff did not happen to host account.

For the past copule days, I tried to locate to code causing the logoff.  I have searched both the DNN web and DNN Library projects for kyewords such as IsSuperUser, UserLogin, SetAuthCookie and Logoff but could not find the related code.  I set the debug point in the default.aspx and saw the Request.IsAuthenticated variable  changing from True to False for non-Host user.  For Host user, it always stays True. 

Any other suggestion?

 

 


Fuji Nguyen
FREE Visitor Hit Counter
Visit opensource.indyneinc.com for detail.
 
New Post
2/9/2008 1:24 PM
 

ah, ok i see what you mean. In that case I suggest that the correct place to look is Library\HttpModules\Membership\MembershipModule.vb . This is a httphandler that checks each web request to see if the user is logged in, what rights they have and whether or not they've changed portals. If you look at the OnAuthenticateRequest method, we try to detect when a user moves between portals and expire their cookie (this is how dotnetnuke allows portal aliasing for multple seperate portals). I believe your problem is that your module is using an aspx page to update it's visitor counter. As that file is an aspx file it passes through this authentication check, and as it's seen as a portal change (as the aspx page existing in a folder outside "portals"). I would suggest that you change your aspx page to be a handler i.e. an ashx.

Cathal


Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Locate source code to allow host to access all portals after loginLocate source code to allow host to access all portals after login


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