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 ForumsAuthenticationAuthenticationAD auth fails sporadicallyAD auth fails sporadically
Previous
 
Next
New Post
2/4/2013 1:20 PM
 

I've searched here and on Google for answers but have not found anything yet.

Environment:

  • Windows Server 2008 R2
  • DNN Version 06.02.05 (24)
  • AD version 5.0.4

I have a portal set up with ONLY AD authentication on a local server.  Basically it is working, but as the number of users has grown (currently close to 1000) an annoying issue has begin to occur. A random handful of users each day, running both XP/IE7 and W7/IE8, complain that their home page -- which has been working fine -- has suddenly gone completely empty.  All the content on the home page is set up to be viewable by "Registered Users" only, so what appears to be happening is that DNN spontaneously stops recognizing the user through the AD.  Since the content is "Registered Users" only, it is hidden from the user.  But at the time this is occurring, they do have a valid account registered on the portal -- it's just not being recognized.

The workaround solution that fixes the problem (temporarily, as this has happened to the same user on more than one occasion) is to delete all Temporary Internet Files, and then close and reopen the browser.  Simply refreshing the page does not fix it.  If it was a couple people a week it might be tolerable but we're getting 4-5 separate incidents a day; today, it happened to the same user twice: working > broken > delete cache > working > broken.  No correlation has been noted as to when and why this occurs.  For all intents and purposes, it's completely random.

Has anyone run into this?  Are there other details about my environment that I should post what might help me get to the bottom of this?

Thank you anyone for any help you can provide.

 

 
New Post
2/5/2013 7:04 AM
Accepted Answer 
I was faced with the same issue although maybe not as bad. My solution was to put a module on the page that checks for the users account name. If it's not found, I redirect them to windowssignin.aspx and that authenticates them and bounces them back to the home page.

While this isn't the ideal solution, it works fine for me.

Mark
 
New Post
2/5/2013 7:48 AM
 

So, something like this?

Imports DotNetNuke
Imports DotNetNuke.Security.PortalSecurity
Partial Class DesktopModules_MyAgency_MyModule
    Inherits DotNetNuke.Entities.Modules.PortalModuleBase
    Protected Sub Page_Load(sender As Object, e As System.EventArgs) Handles Me.Load
        Dim theUser As DotNetNuke.Entities.Users.UserInfo = DotNetNuke.Entities.Users.UserController.GetCurrentUserInfo
        If theUser.Username.Length = 0 Then
            Response.Redirect("~/DesktopModules/AuthenticationServices/ActiveDirectory/WindowsSignin.aspx")
        End If
    End Sub
End Class

 
New Post
2/5/2013 9:44 AM
 

This worked great. Here is the code for the module (below). I added it to the home page set to be viewable by Unauthenticated Users only, so when someone's AD authentication is not recognized, the redirect code will fire, sending them to WindowsSignin.aspx, which then redirects them back to the home page. So, they never even notice that there was a problem. I agree it's not the ideal solution (which would be to know WHY it's failing, and PREVENT it), but this is definitely a pretty smooth workaround. I appreciate your time.

<!--Control Language="VB" ClassName="Monroe.ForceAuth" Inherits="DotNetNuke.Entities.Modules.PortalModuleBase"-->
<!--Import Namespace="DotNetNuke.Security.PortalSecurity"-->

<%@ Control Language="VB" ClassName="Monroe.ForceAuth" Inherits="DotNetNuke.Entities.Modules.PortalModuleBase" %>
<%@ Import Namespace="DotNetNuke" %>
<%@ Import Namespace="DotNetNuke.Security.PortalSecurity" %>

<script runat="server">

 Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs)
  Try
   Dim theUser As DotNetNuke.Entities.Users.UserInfo = DotNetNuke.Entities.Users.UserController.GetCurrentUserInfo
   Dim usrName As String = theUser.Username
   If usrName Is Nothing Then
    Response.Redirect("~/DesktopModules/AuthenticationServices/ActiveDirectory/WindowsSignin.aspx")
   Else
    DNNUserLiteral.Text = theUser.Username
   End If
  Catch ex As Exception
   DNNUserLiteral.Text = ex.Message
  End Try
 End Sub

</script>

<p><ASP:Literal id="DNNUserLiteral" runat="server" EnableViewState="false" /></p>

 
New Post
2/5/2013 3:21 PM
 
Jon,

Glad it worked out for you.

Mark
 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Provider and Extension ForumsProvider and Extension ForumsAuthenticationAuthenticationAD auth fails sporadicallyAD auth fails sporadically


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