Domain.SetSelectiveAuthenticationStatus(String, Boolean) 方法
定义
启用或禁用入站信任的选择性身份验证。Enables or disables selective authentication for an inbound trust.
public:
void SetSelectiveAuthenticationStatus(System::String ^ targetDomainName, bool enable);
public void SetSelectiveAuthenticationStatus (string targetDomainName, bool enable);
member this.SetSelectiveAuthenticationStatus : string * bool -> unit
Public Sub SetSelectiveAuthenticationStatus (targetDomainName As String, enable As Boolean)
参数
- targetDomainName
- String
入站信任所存在的域的 DNS 名称。The DNS name of the domain with which the inbound trust exists.
- enable
- Boolean
如果启用了选择性身份验证,则为 true;否则为 false。true if selective authentication is enabled; otherwise, false.
例外
与由 targetDomainName 指定的域控制器之间没有任何信任关系。There is no trust relationship with the domain controller that is specified by targetDomainName.
调用基础目录服务导致错误。A call to the underlying directory service resulted in an error.
目标服务器忙或不可用。The target server is either busy or unavailable.
targetDomainName 是一个空字符串。targetDomainName is an empty string.
targetDomainName 为 null。targetDomainName is null.
当前对象已被释放。The current object has been disposed.
指定的帐户没有权限执行此操作。The specified account does not have permission to perform this operation.