![Machine generated alternative text: ?ffl: 3figHTTP 401 HUP 401 Windows 娖 HUP 401 11Forms 1E EJ HUP 302 /?韇1ASP.NETW#L](http://static.javashuo.com/static/loading.gif)
Screen clipping taken: 2014/9/28 15:15web
前4者配置:localhost applicationHost.config <location path="">windows
後2者配置:web.config服務器
要點:app
- 這6項雖然列在一塊兒,但在應用上卻不是一個級別的;
- 前4者屬於IIS驗證,其中大家驗證不須要提交用戶名密碼,其餘3個須要提供;
- Form身份驗證屬於ASP.NET驗證,會經過web頁面驗證。要到達這個驗證必須經過IIS驗證(由於一個請求進入服務器後,先到IIS,而後纔到Asp.Net應用程序),即若是要用到Form驗證,那麼前4者必須啓動一個;
- Asp.net 默認運行的帳號由進程模式的標識指定(在應用程序池中),以下圖,但用戶能夠經過web.config中的 identity來模擬其餘帳戶( <identity impersonate="false" password="*****" userName="administrator" />),經過調用System.Security.Principal.WindowsIdentity.GetCurrent().Name可查看此帳戶
![Machine generated alternative text: V
t鞀J
&9P*i(KB)
t9WJ(KB)
Ping i](!?
Ping
n;
[identtyType, username, password)
n
L L
a
).NET v4.5
).NET v4.5 Cias...
AspNetWebPa...
DefauitAppPooi
3QE
ea
ea
v4.0
v4.0
v4.0
v4.0
v4.0
False
1740
False
0
A
Timespan[j Array
o
o
A
False
30
90
Networkservice
90
False
90](http://static.javashuo.com/static/loading.gif)
Screen clipping taken: 2014/9/28 15:34ide
- 和web.config中authentication的對應關係:
Form驗證--Formui
windows驗證--Windowsspa