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

HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Performance Tip Performance Tip
Previous
 
Next
New Post
4/29/2007 10:08 AM
 

If you are concerned about performance in your DotNetNuke websites like I am, here is a quick and easy performance enhancement.
Recent versions of DotNetNuke have added a check to warn you if you are using "admin" or "host" as a username.
This check happens on every page request, and is not needed IMO.

To remove this warning, simply delete the following lines of code from Default.aspx.vb

            'check if running with known account defaults
            Dim messageText As String = ""
            If Request.IsAuthenticated = True And String.IsNullOrEmpty(Request.QueryString("runningDefault")) = False Then
                Dim userInfo As UserInfo = HttpContext.Current.Items("UserInfo")
                'only show message to default users
                If (userInfo.Username.ToLower = "admin") OrElse (userInfo.Username.ToLower = "host") Then
                    messageText = RenderDefaultsWarning()
                    Dim messageTitle As String = Services.Localization.Localization.GetString("InsecureDefaults.Title", Services.Localization.Localization.GlobalResourceFile)
                    UI.Skins.Skin.AddPageMessage(CType(ctlSkin, DotNetNuke.UI.Skins.Skin), messageTitle.ToString, messageText.ToString, Skins.Controls.ModuleMessage.ModuleMessageType.RedError)
                End If
            End If

As per the forum guidelines for this Announcement, I have created a post for discussion on this topic at the following link.
Performance Tip - Remove default user check on every request


DotNetNuke Modules from Snapsis.com
 
New Post
4/29/2007 9:30 PM
 

 

1) why was the extra check added? i can only speculate from a usability perspective.

2) it would be nice if DNN had some configuration options.

a) user friendly

b) standard (mix)

c) optimzed

d) enteprise

 

 

 
New Post
4/30/2007 1:36 AM
 

John,

Can you please log this as an anhancement in Gemini?

Thanks,

 
New Post
4/30/2007 5:28 AM
 

Thanks for the Tip John


Or-Rouge Team Or-Rouge
Personally recommend Hostgator for hosting single or multiple DotNetNuke Websites.
DotNetNuke Tips and Tutorials
Install DotNetNuke to Godaddy root
DotNetNuke Türkçe Hakkinda Hersey
 
New Post
4/30/2007 6:24 AM
 

actually, its coded like that so the performance impact would be minimal. The check for default username/passwords is only done during the login sequence and not on every page request, and appends the querystring parameter so it can be picked up with a check in default.aspx. The check has minimal overhead, as it's only determining if a querystring exists and the user is authenticated - in real terms the performance is miniscule. We could add a host level setting to determine if this code is executed, but it would actually take longer to access this host level variable, than it would do to do the check, so any such logic would be disengenuos IMO.

I will amend the logic to use "AndAlso" rather than "And", so the second check is never performed for unauthenticated sessions.

Cathal

 


Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
Previous
 
Next
HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Performance Tip Performance Tip


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