So, here's an update. I put some response.writes in the global.asax files. Here are the results.
UserInfoProvider.GetUserName()) = david
HttpContext.Current.User.Identity.Name) = david
CMSContext.IsAuthenticated() = True
Using CMSContext.CurrentUser.UserName gives the following error:
Exception Details: System.Configuration.Provider.ProviderException: Method is only supported if the user name parameter matches the user name in the current Windows Identity.
So, I guess the question is, why is the CMSContext saying that the user is authenticated but doesn't really match the username/name or something?
Regards
Here's the stack trace:[ProviderException: Method is only supported if the user name parameter matches the user name in the current Windows Identity.]
System.Web.Security.WindowsTokenRoleProvider.GetCurrentWindowsIdentityAndCheckName(String userName) +3647658
System.Web.Security.WindowsTokenRoleProvider.GetCurrentTokenAndCheckName(String userName) +49
System.Web.Security.WindowsTokenRoleProvider.GetRolesForUser(String username) +143
CMS.SiteProvider.UserInfoProvider.AuthenticateUserWindows(IPrincipal user, String siteName) +187
CMS.CMSHelper.CMSContext.GetCurrentUser(Boolean& loadUserData) +403
CMS.CMSHelper.CMSContext.get_CurrentUser() +24
Global.Session_Start(Object sender, EventArgs e) in c:\inetpub\wwwroot\KenticoCMS\App_Code\Global.asax.cs:216
System.Web.SessionState.SessionStateModule.CompleteAcquireState() +409
System.Web.SessionState.SessionStateModule.BeginAcquireState(Object source, EventArgs e, AsyncCallback cb, Object extraData) +1296
System.Web.AsyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +115
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +371