Hi Mike,
In a perfect world, should these files have been removed by the upgrade package? I'm not to comfortable with rogue files floating around in my production install and truthfully, I'm not so intimately aquainted with DNN as to know exactly what files should or should not be there. I only discovered these by trial and error.
mikeh wrote
As for tips pointing to signin.ascx.vb or signin.ascx, all of those relating to the DNN AD Fix have been incorporated into the provider and any that pointed to signin.ascx can now be used in DesktopModules/AuthenticationServices/ActiveDirectory/login.ascx. If there are any others that you're interested in post back and I'll let you know where the files are.
From another post here:
[QUOTE]sconard wrote
It seems by my testing that mikeh is right and it is not possible to have autologin work in mixed mode. I did however modifiy the httpmodule.authentication authenticationmodule.vb to test for local address prior to redirect
This is from 3.3.5 in the OnAuthenticateRequest sub.
If (AuthenticationController.GetStatus(_portalSettings.PortalId) = AuthenticationStatus.Undefined) Then 'OrElse (blnWinLogon) Then
AuthenticationController.SetStatus(_portalSettings.PortalId, AuthenticationStatus.WinProcess)
Dim url As String
'mod check if local address*****************************************
'this allows for mixed mode with auto login
If Not InStr(Left(Request.ServerVariables("remote_addr"), 3), "11.") = 0 Then
If Request.ApplicationPath = "/" Then
url = "/Admin/Security/WindowsSignin.aspx?tabid=" & _portalSettings.ActiveTab.TabID.ToString
Else
url = Request.ApplicationPath & "/Admin/Security/WindowsSignin.aspx?tabid=" & _portalSettings.ActiveTab.TabID.ToString
End If
Response.Redirect(url)
ElseIf (Not AuthenticationController.GetStatus(_portalSettings.PortalId) = AuthenticationStatus.WinLogoff) AndAlso blnWinLogoff Then
Dim objAuthentication As New AuthenticationController
objAuthentication.AuthenticationLogoff()
ElseIf (AuthenticationController.GetStatus(_portalSettings.PortalId) = AuthenticationStatus.WinLogoff) AndAlso blnWinLogon Then ' has been logoff before
AuthenticationController.SetStatus(_portalSettings.PortalId, AuthenticationStatus.Undefined)
Response.Redirect(Request.RawUrl)
End If
'old dnn code
'If Request.ApplicationPath = "/" Then
' url = "/Admin/Security/WindowsSignin.aspx?tabid=" & _portalSettings.ActiveTab.TabID.ToString
'Else
' url = Request.ApplicationPath & "/Admin/Security/WindowsSignin.aspx?tabid=" & _portalSettings.ActiveTab.TabID.ToString
'End If
'Response.Redirect(url)
'***********************************************
And a few other quotes from this same thread:
jacob_miw wrote
So let me get this straight. If I do the following:
1) Enable Windows authentication in Admin > Authentication
2) Make the above edit to authenticationmodule.vb.
Then I will allow my intranet-users to automatically logon, if they add the site to the Trusted- or the Intranetzone. And I will still have the Logon-form? Or will I have the windows-popup-logon-box?
This is not code incorporated into the new provider right? Because of the unknown of the internal IP scheme of the host? I guess I'm still after having Intranet users automatically logged in and external anonymous users not presented with the WindowsSignin prompt. I know this things been beat to death in the forums here but when I came across this post it looked like a viable solution if I chose to make the above modification to my code.
What file and what code changes would need to be made to the new provider to accomplish the above fix and does this fix indeed overcome the autologin conundrum?
Thanks,
Paul