共用方式為


WindowsClientCredential.AllowNtlm 屬性

定義

警告

This property is deprecated and is maintained for backward compatibility only. The local machine policy will be used to determine if NTLM should be used.

取得或設定值,這個值表示是否應允許 NTLM 驗證做為 Windows SSPI Negotiate 驗證。

public:
 property bool AllowNtlm { bool get(); void set(bool value); };
[System.Obsolete("This property is deprecated and is maintained for backward compatibility only. The local machine policy will be used to determine if NTLM should be used.")]
public bool AllowNtlm { get; set; }
public bool AllowNtlm { get; set; }
[<System.Obsolete("This property is deprecated and is maintained for backward compatibility only. The local machine policy will be used to determine if NTLM should be used.")>]
member this.AllowNtlm : bool with get, set
member this.AllowNtlm : bool with get, set
Public Property AllowNtlm As Boolean

屬性值

如果應允許 NTLM 驗證做為 Windows SSPI Negotiate 驗證,則為 true,否則為 false。 預設為 true

屬性

備註

將這個屬性設定為 true 時,如果 Kerberos 無法使用,會允許驗證降級為 NTLM。

將此屬性設定為 false 會導致 Windows Communication Foundation (WCF) 在 NTLM 使用時,最好擲回例外狀況。 請注意,將此屬性設為 false,不一定能夠禁止 NTLM 認證透過網路傳送。

包括工作群組和本機帳戶等特定部署都需要 NTLM 驗證。 在這類部署中將此旗標設定為 false 會導致使用 WCF 時發生驗證失敗。 在需要相互驗證的部署中 (只有 Kerberos 才支援),請將這個旗標設定為 false

NTLM (Windows NT LAN Manager) 是一種驗證通訊協定,可在包含執行 Windows NT 作業系統之系統的網路上以及獨立的系統上使用。

比起 NTLM,Microsoft Kerberos 安全性套件可為網路上的系統提供更高的安全性。 雖然 Microsoft Kerberos 是理想的通訊協定,但是 NTLM 仍然受到支援,而且如果網路包含執行 Windows NT 4.0 (含) 以前版本的系統,以及在獨立的系統上,則是網路驗證所需的通訊協定。

適用於