0
這怎麼可能顯示NTLM和Kerberos AuthenticationType執行在VS2010調試時,該代碼時:IIS 7.5的Windows集成身份驗證混亂
IIdentity WinId = HttpContext.Current.User.Identity;
WindowsIdentity currentIdentity = WindowsIdentity.GetCurrent();
lblUserName.Text ="User NAme: " + WinId.Name;
lblIsAuthenticated.Text = "Is Authenticated: " + WinId.IsAuthenticated.ToString();
lbluthentiationType.Text = "Authetication type: " + WinId.AuthenticationType;
lblAuthenticationType2.Text = "Authentication Type: " + currentIdentity.AuthenticationType;
當我看到在本地服務器這表明談判雙方lblAuthenticatinType和lblAuthenticatinType2
也
我只能訪問由IP網絡服務器(172.0.0.10:1111)和401.1當服務器名accessig當看到身份驗證的用戶:1111和servername.domain.com:1111
我不知道該在哪裏。我在web.config中啓用驗證如下
<authentication mode="Windows">
<!--<identity impersonate="true" userName="<domain>\<UserName>" password="<password>"/>-->
</authentication>
<authorization>
<!--<allow users="domain\user.name" /><allow roles="domain\Users" />-->
<allow users="?" />
</authorization>
你是說'WinId.AuthenticationType'和'currentIdentity.AuthenticationType'表明,這兩個NTLM和Kerberos是效果在同一時間? –
是的,發生了什麼事。任何想法有什麼不對? – laspalmos
「currentIdentity」的用戶名是什麼?如果內存提供服務,那麼其中一個將是經過身份驗證的用戶,另一個可能是運行應用程序池的帳戶的標識。 –