![](/img/trans.png)
[英]Possible to authenticate/retrieve user on intranet when set to Forms authentication?
[英]Get domain\user in a intranet using authentication mode = “forms”
我必須在Intranet網絡中安裝一個ASP.NET站點。 我正在使用身份驗證模式=“表單”。在我的頁面中,我需要連接用戶的域\\用戶。
我關注了這篇文章: http : //support.microsoft.com/kb/306359
但這是行不通的。 我的web.config具有:
<identity impersonate="true"/>
<authentication mode="Forms" >
<forms name="login" loginUrl="~/Login.aspx" defaultUrl="~/Default.aspx" timeout="30000" />
</authentication>
<authorization>
<deny users = "?" />
<!-- This denies access to the Anonymous user -->
<allow users ="*" />
<!-- This allows access to all users -->
</authorization>
我正在使用IIS 6和.net 4在IIS的身份驗證方法設置中,我已經檢查了
-Enable anonymous access
-Integrated windows authentication
我能怎么做?
謝謝
如果啟用了匿名訪問,則網站訪問者都將模擬IUSR_MachineName帳戶(或任何您配置為匿名帳戶的帳戶)。
您需要禁用匿名訪問,以便該站點將強制用戶使用其憑據進行身份驗證,以便它們在您的ASP.NET頁中可用。 否則,服務器不知道當前用戶是誰。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.