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 ForumsAuthenticationAuthenticationAuthentication problemAuthentication problem
Previous
 
Next
New Post
1/5/2006 9:05 PM
 

I have a thread in this forum (LastLoginDate) that has not gotten any replies.

The LastLoginDate is not being updated when using AD authentication.
LastLoginDate always equals the creation date.

Anybody seeing the same?

mikez

 
New Post
1/6/2006 3:06 AM
 

I was testing this on a machine not auth. on the domain, but in IIS, I have set up authenticated access only, so when I point my browser to a dnn-page I'm asked for AD-credentials(User "A"), and then logged into dnn. BUT, when I close this browser, and open another one and point it to the same URL, I'm asked for credentials again, and whichever credentials I give, I'm still logged into dnn as user "A"...

If there is no config-parameter to make this auth-cookie valid only for a session, I think I would have to call this a bug ?

 
New Post
1/6/2006 10:42 AM
 
Yes, I am seeing the same thing, and when I get a chance I'll test your posted fix from the other thread. I'd suggest entering it as a bug into Gemini at support.dotnetnuke.com. I can post it, but you've taken the time to find and fix the source, so I think you deserve the credit!

Roberta
 
New Post
1/12/2006 8:38 AM
 
I managed to fix this myself by making the authentication-cookies session based(which they are default, if you dont specify an expirationdate).

I changed the following methods in components\authentication\AuthenticationController.vb to avoid the problem I described earlier:

######################################
Public Shared Sub SetStatus(ByVal PortalID As Integer, ByVal Status As AuthenticationStatus)
Dim authCookies As String = AUTHENTICATION_STATUS_KEY & "." & PortalID.ToString
Dim Request As HttpRequest = HttpContext.Current.Request
Dim Response As HttpResponse = HttpContext.Current.Response

Dim AuthenticationTicket As New FormsAuthenticationTicket(1, authCookies, DateTime.Now, DateTime.Now, False, Status.ToString)
' encrypt the ticket
Dim strAuthentication As String = FormsAuthentication.Encrypt(AuthenticationTicket)

Response.Cookies(authCookies).Value = strAuthentication
Response.Cookies(authCookies).Path = "/"
End Sub

##################################

And in this line in AuthenticationLogon(), I changed
true to false

###################################
FormsAuthentication.SetAuthCookie(Convert.ToString(LoggedOnUserName), True)
###################################

I believe this is a bugfix, but I really can't guarantee it wont adversely affect other setups...
 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Provider and Extension ForumsProvider and Extension ForumsAuthenticationAuthenticationAuthentication problemAuthentication problem


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