2013-12-19 37 views
0

Kerberos已啓用安全性。對於在IIS中設置身份驗證模式:在我的應用程序中提示Kerberos中的用戶名和密碼

  1. 基本身份驗證

  2. 集成身份驗證已得到遏制。

應用主要有兩個部分:

  1. 通常它應該工作和

  2. 其他地方應該提示。

要提示我用下面的代碼

 Response.Buffer = True 
     Response.StatusCode = 401 
     Response.StatusDescription = "Unauthorized" 

     ' A authentication header must be supplied. This header can be changed to Negotiate when using keberos authentication 
     Response.AddHeader("WWW-Authenticate", "NTLM") 

     ' Send the 401 response 
     Response.End() 

我在正常的網站問題是每次提示我,我怎麼能得到它停止提示。 而其他我推動提示它應該按原樣運行。

請問有需要的

回答

0

不是你應該發送401但是服務器!您必須在您的web.config中提供受保護的URL。

相關問題