PrincipalContext 构造函数

定义

初始化 PrincipalContext 类的新实例。Initializes a new instance of the PrincipalContext class.

重载

PrincipalContext(ContextType)

使用指定的上下文类型初始化 PrincipalContext 类的新实例。Initializes a new instance of the PrincipalContext class with the specified context type.

PrincipalContext(ContextType, String)

使用指定的上下文类型和名称初始化 PrincipalContext 类的新实例。Initializes a new instance of the PrincipalContext class with the specified context type and name.

PrincipalContext(ContextType, String, String)

使用指定的上下文类型、名称和容器初始化 PrincipalContext 类的新实例。Initializes a new instance of the PrincipalContext class with the specified context type, name, and container.

PrincipalContext(ContextType, String, String, ContextOptions)

使用指定的上下文类型、名称、容器和上下文选项初始化 PrincipalContext 类的新实例。Initializes a new instance of the PrincipalContext class with the specified context type, name, container, and context options.

PrincipalContext(ContextType, String, String, String)

使用指定的上下文类型、名称、用户名和密码初始化 PrincipalContext 类的新实例。Initializes a new instance of the PrincipalContext class with the specified context type, name, username, and password.

PrincipalContext(ContextType, String, String, String, String)

使用指定的上下文类型、名称、容器、用户名和密码初始化 PrincipalContext 类的新实例。Initializes a new instance of the PrincipalContext class with the specified context type, name, container, username, and password.

PrincipalContext(ContextType, String, String, ContextOptions, String, String)

使用指定的上下文类型、名称、容器、上下文选项、用户名和密码初始化 PrincipalContext 类的新实例。Initializes a new instance of the PrincipalContext class with the specified context type, name, container, context options, username, and password.

注解

PrincipalContext 构造函数执行参数和服务器的验证,但不尝试验证凭据。The PrincipalContext constructors perform validation of the parameters and server, but not do not attempt to validate credentials.

如果在未指定容器的情况下创建主体上下文对象,则可以使用它来表示多个不同的容器。When the principal context object is created without specifying a container, it may be used to represent multiple distinct containers. 一个容器可用作查询操作的基础,而其他容器则可以保存新创建的主体对象。One container may be used as the base of query operations, while additional containers can hold newly-created principal objects. 例如,当用户或组插入到域上下文类型中时,帐户管理 API 将使用默认的已知用户容器 "CN = Users,DC = Fabrikam,DC = com"。For example, when users or groups are inserted into the domain context type, the Account Management API uses the default well-known user container, "CN=Users,DC=Fabrikam,DC=com". 在应用商店中插入计算机时,API 将使用默认的 "CN = 计算机,DC = Fabrikam,DC = com" 容器。When computers are inserted in the store, the API uses the default "CN=Computers,DC=Fabrikam,DC=com" container. 请注意,域管理员可以更改默认容器名称。Note that the default container names can be changed by the domain administrator. 由于主体对象构造函数只能指定一个主体上下文,因此,当应用程序在未指定容器的情况下创建域上下文时,其他上下文将公开为默认行为。Since the principal object constructors can only specify one principal context, additional contexts are exposed as the default behavior when the application creates a domain context without specifying a container. 由于应用程序目录没有众所周知的容器,因此应用程序必须在构造函数中指定容器,否则会引发 ArgumentExceptionSince the application directory does not have well-known containers, the application must specify a container in the constructor or the ArgumentException is thrown. 由于 SAM 没有容器,如果应用程序尝试在构造函数中指定容器,则会引发 ArgumentExceptionSince SAM does not have containers, a ArgumentException is thrown if the application attempts to specify a container in the constructor.

在采用用户名作为参数的构造函数的每个版本中,userName 字符串可以采用各种不同的格式。In each version of the constructor that takes a user name as a parameter, the userName string can be in various different formats. 的三个受支持的 NameFormats 是 Nt4Name、UserPrincipalName 和 SamAccountName。The three supported NameFormats for are Nt4Name, UserPrincipalName, and SamAccountName. 有关名称格式的详细信息,请参阅此处的 ADS_NAME_TYPE_ENUM 文档。For more information about name formats, see the ADS_NAME_TYPE_ENUM documentation here.

PrincipalContext(ContextType)

使用指定的上下文类型初始化 PrincipalContext 类的新实例。Initializes a new instance of the PrincipalContext class with the specified context type.

public:
 PrincipalContext(System::DirectoryServices::AccountManagement::ContextType contextType);
public PrincipalContext (System.DirectoryServices.AccountManagement.ContextType contextType);
new System.DirectoryServices.AccountManagement.PrincipalContext : System.DirectoryServices.AccountManagement.ContextType -> System.DirectoryServices.AccountManagement.PrincipalContext
Public Sub New (contextType As ContextType)

参数

contextType
ContextType

一个 ContextType 枚举值,指定主体上下文的存储区的类型。A ContextType enumeration value specifying the type of store for the principal context.

例外

在使用应用程序目录上下文时,必须指定名称或容器。A name or container must be specified when using the application directory context.

contextType 参数不包含有效的 ContextType 枚举值。The contextType parameter does not contain a valid ContextType enumeration value.

PrincipalContext(ContextType, String)

使用指定的上下文类型和名称初始化 PrincipalContext 类的新实例。Initializes a new instance of the PrincipalContext class with the specified context type and name.

public:
 PrincipalContext(System::DirectoryServices::AccountManagement::ContextType contextType, System::String ^ name);
public PrincipalContext (System.DirectoryServices.AccountManagement.ContextType contextType, string name);
new System.DirectoryServices.AccountManagement.PrincipalContext : System.DirectoryServices.AccountManagement.ContextType * string -> System.DirectoryServices.AccountManagement.PrincipalContext
Public Sub New (contextType As ContextType, name As String)

参数

contextType
ContextType

一个 ContextType 枚举值,指定主体上下文的存储区的类型。A ContextType enumeration value specifying the type of store for the principal context.

name
String

用于 Domain 上下文类型的域或服务器的名称、用于 Machine 上下文类型的计算机名称或承载 ApplicationDirectory 实例的服务器和端口的名称。The name of the domain or server for Domain context types, the machine name for Machine context types, or the name of the server and port hosting the ApplicationDirectory instance.

如果 null 上下文类型的名称为 Domain,则此上下文是运行该线程的用户主体的域的域控制器。If the name is null for a Domain context type this context is a domain controller for the domain of the user principal under which the thread is running. 如果 null 上下文类型的名称为 Machine,则此名称是本地计算机名称。If the name is null for a Machine context type, this is the local machine name. 对于 null 上下文类型,此参数不能为 ApplicationDirectoryThis parameter cannot be null for ApplicationDirectory context types.

例外

ApplicationDirectory 参数中指定 contextType 时,必须指定名称。A name must be specified when ApplicationDirectory is specified in the contextType parameter.

contextType 参数不包含有效的 ContextType 枚举值。The contextType parameter does not contain a valid ContextType enumeration value.

PrincipalContext(ContextType, String, String)

使用指定的上下文类型、名称和容器初始化 PrincipalContext 类的新实例。Initializes a new instance of the PrincipalContext class with the specified context type, name, and container.

public:
 PrincipalContext(System::DirectoryServices::AccountManagement::ContextType contextType, System::String ^ name, System::String ^ container);
public PrincipalContext (System.DirectoryServices.AccountManagement.ContextType contextType, string name, string container);
new System.DirectoryServices.AccountManagement.PrincipalContext : System.DirectoryServices.AccountManagement.ContextType * string * string -> System.DirectoryServices.AccountManagement.PrincipalContext
Public Sub New (contextType As ContextType, name As String, container As String)

参数

contextType
ContextType

一个 ContextType 枚举值,指定主体上下文的存储区的类型。A ContextType enumeration value specifying the type of store for the principal context.

name
String

用于 Domain 上下文类型的域或服务器的名称、用于 Machine 上下文类型的计算机名称或承载 ApplicationDirectory 实例的服务器和端口的名称。The name of the domain or server for Domain context types, the machine name for Machine context types, or the name of the server and port hosting the ApplicationDirectory instance.

如果 null 上下文类型的名称为 Domain,则此上下文是运行该线程的用户主体的域的域控制器。If the name is null for a Domain context type this context is a domain controller for the domain of the user principal under which the thread is running. 如果 null 上下文类型的名称为 Machine,则此名称是本地计算机名称。If the name is null for a Machine context type, this is the local machine name. 对于 null 上下文类型,此参数不能为 ApplicationDirectoryThis parameter cannot be null for ApplicationDirectory context types.

container
String

存储区上要用作上下文的根的容器。The container on the store to use as the root of the context. 所有查询都在此根下执行,并且所有插入都在此容器中执行。All queries are performed under this root, and all inserts are performed into this container.

对于 DomainApplicationDirectory 上下文类型,此参数是容器对象的可分辨名称。For Domain and ApplicationDirectory context types, this parameter is the distinguished name of a container object.

对于 Machine 上下文类型,此参数必须设置为 nullFor Machine context types, this parameter must be set to null.

例外

Machine 参数中指定 contextType 上下文类型时,不能指定容器。A container cannot be specified when the Machine context type is specified in the contextType parameter.

ApplicationDirectory 参数中指定 contextType 时,必须指定 name 或 container。A name or container must be specified when ApplicationDirectory is specified in the contextType parameter.

contextType 参数不包含有效的 ContextType 枚举值。The contextType parameter does not contain a valid ContextType enumeration value.

注解

如果为 Domain 主体上下文指定的容器不是有效的容器,则可能会在连接到服务器的后续目录操作调用中引发 InvalidOperationExceptionThe InvalidOperationException may be thrown in subsequent directory operations calls that connect to the server if the container specified for a Domain principal context is not a valid container. 容器定义为一个对象,其 schema 类在其 possibleInferiors 属性中具有主体类(用户、组或计算机)。A container is defined as an object whose schema class has the principal classes, either user, group, or computer, in its possibleInferiors attribute.

PrincipalContext(ContextType, String, String, ContextOptions)

使用指定的上下文类型、名称、容器和上下文选项初始化 PrincipalContext 类的新实例。Initializes a new instance of the PrincipalContext class with the specified context type, name, container, and context options.

public:
 PrincipalContext(System::DirectoryServices::AccountManagement::ContextType contextType, System::String ^ name, System::String ^ container, System::DirectoryServices::AccountManagement::ContextOptions options);
public PrincipalContext (System.DirectoryServices.AccountManagement.ContextType contextType, string name, string container, System.DirectoryServices.AccountManagement.ContextOptions options);
new System.DirectoryServices.AccountManagement.PrincipalContext : System.DirectoryServices.AccountManagement.ContextType * string * string * System.DirectoryServices.AccountManagement.ContextOptions -> System.DirectoryServices.AccountManagement.PrincipalContext
Public Sub New (contextType As ContextType, name As String, container As String, options As ContextOptions)

参数

contextType
ContextType

一个 ContextType 枚举值,指定主体上下文的存储区的类型。A ContextType enumeration value specifying the type of store for the principal context.

name
String

用于 Domain 上下文类型的域或服务器的名称、用于 Machine 上下文类型的计算机名称或承载 ApplicationDirectory 实例的服务器和端口的名称。The name of the domain or server for Domain context types, the machine name for Machine context types, or the name of the server and port hosting the ApplicationDirectory instance.

如果 null 上下文类型的名称为 Domain,则此上下文是运行该线程的用户主体的域的域控制器。If the name is null for a Domain context type this context is a domain controller for the domain of the user principal under which the thread is running. 如果 null 上下文类型的名称为 Machine,则此名称是本地计算机名称。If the name is null for a Machine context type, this is the local machine name. 对于 null 上下文类型,此参数不能为 ApplicationDirectoryThis parameter cannot be null for ApplicationDirectory context types.

container
String

存储区上要用作上下文的根的容器。The container on the store to use as the root of the context. 所有查询都在此根下执行,并且所有插入都在此容器中执行。All queries are performed under this root, and all inserts are performed into this container.

对于 DomainApplicationDirectory 上下文类型,此参数是容器对象的可分辨名称。For Domain and ApplicationDirectory context types, this parameter is the distinguished name of a container object.

对于 Machine 上下文类型,此参数必须设置为 nullFor Machine context types, this parameter must be set to null.

options
ContextOptions

一个或多个 ContextOptions 枚举值的组合,这些枚举值指定用于绑定到服务器的选项。A combination of one or more ContextOptions enumeration values specifying the options used to bind to the server. 如果此参数为 null,则默认选项为 ContextOptions.Negotiate | ContextOptions.Signing | ContextOptions.Sealing。If this parameter is null, the default options are ContextOptions.Negotiate | ContextOptions.Signing | ContextOptions.Sealing.

例外

Machine 参数中指定 contextType 上下文类型时,不能指定容器。A container cannot be specified when the Machine context type is specified in the contextType parameter.

ApplicationDirectory 参数中指定 contextType 时,必须指定 name 或 container。A name or container must be specified when ApplicationDirectory is specified in the contextType parameter.

contextType 参数不包含有效的 ContextType 枚举值。The contextType parameter does not contain a valid ContextType enumeration value.

options 参数不包含有效 ContextOptions 枚举值的组合。The options parameter does not contain a combination of valid ContextOptions enumeration values.

注解

如果为 Domain 主体上下文指定的容器不是有效的容器,则可能会在连接到服务器的后续目录操作调用中引发 InvalidOperationExceptionThe InvalidOperationException may be thrown in subsequent directory operations calls that connect to the server if the container specified for a Domain principal context is not a valid container. 容器定义为一个对象,其 schema 类在其 possibleInferiors 属性中具有主体类(用户、组或计算机)。A container is defined as an object whose schema class has the principal classes, either user, group, or computer, in its possibleInferiors attribute.

PrincipalContext(ContextType, String, String, String)

使用指定的上下文类型、名称、用户名和密码初始化 PrincipalContext 类的新实例。Initializes a new instance of the PrincipalContext class with the specified context type, name, username, and password.

public:
 PrincipalContext(System::DirectoryServices::AccountManagement::ContextType contextType, System::String ^ name, System::String ^ userName, System::String ^ password);
public PrincipalContext (System.DirectoryServices.AccountManagement.ContextType contextType, string name, string userName, string password);
new System.DirectoryServices.AccountManagement.PrincipalContext : System.DirectoryServices.AccountManagement.ContextType * string * string * string -> System.DirectoryServices.AccountManagement.PrincipalContext
Public Sub New (contextType As ContextType, name As String, userName As String, password As String)

参数

contextType
ContextType

一个 ContextType 枚举值,指定主体上下文的存储区的类型。A ContextType enumeration value specifying the type of store for the principal context.

name
String

用于 Domain 上下文类型的域或服务器的名称、用于 Machine 上下文类型的计算机名称或承载 ApplicationDirectory 实例的服务器和端口的名称。The name of the domain or server for Domain context types, the machine name for Machine context types, or the name of the server and port hosting the ApplicationDirectory instance.

如果 null 上下文类型的名称为 Domain,则此上下文是运行该线程的用户主体的域的域控制器。If the name is null for a Domain context type this context is a domain controller for the domain of the user principal under which the thread is running. 如果 null 上下文类型的名称为 Machine,则此名称是本地计算机名称。If the name is null for a Machine context type, this is the local machine name. 对于 null 上下文类型,此参数不能为 ApplicationDirectoryThis parameter cannot be null for ApplicationDirectory context types.

userName
String

用于连接到存储区的用户名。The username used to connect to the store. 如果 userNamepassword 参数都为 null,则使用当前进程的凭据。If the userName and password parameters are both null, the credentials of the current process are used. 否则,userNamepassword 都不可以为 null,并使用这两个参数指定的凭据来连接到存储区。Otherwise, both userName and password must be non-null, and the credentials they specify are used to connect to the store.

password
String

用于连接到存储区的密码。The password used to connect to the store. 如果 userNamepassword 参数都为 null,则使用当前进程的凭据。If the userName and password parameters are both null, the credentials of the current process are used. 否则,userNamepassword 都不可以为 null,并使用这两个参数指定的凭据来连接到存储区。Otherwise, both userName and password must be non-null, and the credentials they specify are used to connect to the store.

例外

usernamepassword 参数必须为 null 或包含值。The username and password parameters must either be null or contain a value.

ApplicationDirectory 参数中指定 contextType 时,必须指定名称。A name must be specified when ApplicationDirectory is specified in the contextType parameter.

contextType 参数不包含有效的 ContextType 枚举值。The contextType parameter does not contain a valid ContextType enumeration value.

PrincipalContext(ContextType, String, String, String, String)

使用指定的上下文类型、名称、容器、用户名和密码初始化 PrincipalContext 类的新实例。Initializes a new instance of the PrincipalContext class with the specified context type, name, container, username, and password.

public:
 PrincipalContext(System::DirectoryServices::AccountManagement::ContextType contextType, System::String ^ name, System::String ^ container, System::String ^ userName, System::String ^ password);
public PrincipalContext (System.DirectoryServices.AccountManagement.ContextType contextType, string name, string container, string userName, string password);
new System.DirectoryServices.AccountManagement.PrincipalContext : System.DirectoryServices.AccountManagement.ContextType * string * string * string * string -> System.DirectoryServices.AccountManagement.PrincipalContext
Public Sub New (contextType As ContextType, name As String, container As String, userName As String, password As String)

参数

contextType
ContextType

一个 ContextType 枚举值,指定主体上下文的存储区的类型。A ContextType enumeration value specifying the type of store for the principal context.

name
String

用于 Domain 上下文类型的域或服务器的名称、用于 Machine 上下文类型的计算机名称或承载 ApplicationDirectory 实例的服务器和端口的名称。The name of the domain or server for Domain context types, the machine name for Machine context types, or the name of the server and port hosting the ApplicationDirectory instance.

如果 null 上下文类型的名称为 Domain,则此上下文是运行该线程的用户主体的域的域控制器。If the name is null for a Domain context type this context is a domain controller for the domain of the user principal under which the thread is running. 如果 null 上下文类型的名称为 Machine,则此名称是本地计算机名称。If the name is null for a Machine context type, this is the local machine name. 对于 null 上下文类型,此参数不能为 ApplicationDirectoryThis parameter cannot be null for ApplicationDirectory context types.

container
String

存储区上要用作上下文的根的容器。The container on the store to use as the root of the context. 所有查询都在此根下执行,并且所有插入都在此容器中执行。All queries are performed under this root, and all inserts are performed into this container.

对于 DomainApplicationDirectory 上下文类型,此参数是容器对象的可分辨名称。For Domain and ApplicationDirectory context types, this parameter is the distinguished name of a container object.

对于 Machine 上下文类型,此参数必须设置为 nullFor Machine context types, this parameter must be set to null.

userName
String

用于连接到存储区的用户名。The username used to connect to the store. 如果 userNamepassword 参数都为 null,则使用当前主体的默认凭据。If the userName and password parameters are both null, the default credentials of the current principal are used. 否则,userNamepassword 都不可以为 null,并使用这两个参数指定的凭据来连接到存储区。Otherwise, both userName and password must be non-null, and the credentials they specify are used to connect to the store.

password
String

用于连接到存储区的密码。The password used to connect to the store. 如果 userNamepassword 参数都为 null,则使用当前主体的默认凭据。If the userName and password parameters are both null, the default credentials of the current principal are used. 否则,userNamepassword 都不可以为 null,并使用这两个参数指定的凭据来连接到存储区。Otherwise, both userName and password must be non-null, and the credentials they specify are used to connect to the store.

例外

usernamepassword 参数必须为 null 或包含值。The username and password parameters must either be null or contain a value.

Machine 参数中指定 contextType 上下文类型时,不能指定容器。A container cannot be specified when the Machine context type is specified in the contextType parameter.

name 参数中指定 container 时,必须指定 ApplicationDirectorycontextTypeA name or container must be specified when ApplicationDirectory is specified in the contextType parameter.

contextType 参数不包含有效的 ContextType 枚举值。The contextType parameter does not contain a valid ContextType enumeration value.

注解

如果为 Domain 主体上下文指定的容器不是有效的容器,则可能会在连接到服务器的后续目录操作调用中引发 InvalidOperationExceptionThe InvalidOperationException may be thrown in subsequent directory operations calls that connect to the server if the container specified for a Domain principal context is not a valid container. 容器定义为一个对象,其 schema 类在其 possibleInferiors 属性中具有主体类(用户、组或计算机)。A container is defined as an object whose schema class has the principal classes, either user, group, or computer, in its possibleInferiors attribute.

PrincipalContext(ContextType, String, String, ContextOptions, String, String)

使用指定的上下文类型、名称、容器、上下文选项、用户名和密码初始化 PrincipalContext 类的新实例。Initializes a new instance of the PrincipalContext class with the specified context type, name, container, context options, username, and password.

public:
 PrincipalContext(System::DirectoryServices::AccountManagement::ContextType contextType, System::String ^ name, System::String ^ container, System::DirectoryServices::AccountManagement::ContextOptions options, System::String ^ userName, System::String ^ password);
public PrincipalContext (System.DirectoryServices.AccountManagement.ContextType contextType, string name, string container, System.DirectoryServices.AccountManagement.ContextOptions options, string userName, string password);
new System.DirectoryServices.AccountManagement.PrincipalContext : System.DirectoryServices.AccountManagement.ContextType * string * string * System.DirectoryServices.AccountManagement.ContextOptions * string * string -> System.DirectoryServices.AccountManagement.PrincipalContext
Public Sub New (contextType As ContextType, name As String, container As String, options As ContextOptions, userName As String, password As String)

参数

contextType
ContextType

一个 ContextType 枚举值,指定主体上下文的存储区的类型。A ContextType enumeration value specifying the type of store for the principal context.

name
String

用于 Domain 上下文类型的域或服务器的名称、用于 Machine 上下文类型的计算机名称或承载 ApplicationDirectory 实例的服务器和端口的名称。The name of the domain or server for Domain context types, the machine name for Machine context types, or the name of the server and port hosting the ApplicationDirectory instance.

如果 null 上下文类型的名称为 Domain,则此上下文是运行该线程的用户主体的域的域控制器。If the name is null for a Domain context type this context is a domain controller for the domain of the user principal under which the thread is running. 如果 null 上下文类型的名称为 Machine,则此名称是本地计算机名称。If the name is null for a Machine context type, this is the local machine name. 对于 null 上下文类型,此参数不能为 ApplicationDirectoryThis parameter cannot be null for ApplicationDirectory context types.

container
String

存储区上要用作上下文的根的容器。The container on the store to use as the root of the context. 所有查询都在此根下执行,并且所有插入都在此容器中执行。All queries are performed under this root, and all inserts are performed into this container.

对于 DomainApplicationDirectory 上下文类型,此参数是容器对象的可分辨名称。For Domain and ApplicationDirectory context types, this parameter is the distinguished name of a container object.

对于 Machine 上下文类型,此参数必须设置为 nullFor Machine context types, this parameter must be set to null.

options
ContextOptions

一个或多个 ContextOptions 枚举值的组合,这些枚举值指定用于绑定到服务器的选项。A combination of one or more ContextOptions enumeration values the options used to bind to the server. 如果此参数为 null,则默认选项为 ContextOptions.Negotiate | ContextOptions.Signing | ContextOptions.Sealing。If this parameter is null, the default options are ContextOptions.Negotiate | ContextOptions.Signing | ContextOptions.Sealing.

userName
String

用于连接到存储区的用户名。The username used to connect to the store. 如果 userNamepassword 参数都为 null,则使用当前主体的默认凭据。If the userName and password parameters are both null, the default credentials of the current principal are used. 否则,userNamepassword 都不可以为 null,并使用这两个参数指定的凭据来连接到存储区。Otherwise, both userName and password must be non-null, and the credentials they specify are used to connect to the store.

password
String

用于连接到存储区的密码。The password used to connect to the store. 如果 userNamepassword 参数都为 null,则使用当前主体的默认凭据。If the userName and password parameters are both null, the default credentials of the current principal are used. 否则,userNamepassword 都不可以为 null,并使用这两个参数指定的凭据来连接到存储区。Otherwise, both userName and password must be non-null, and the credentials they specify are used to connect to the store.

例外

usernamepassword 参数必须为 null 或包含值。The username and password parameters must either be null or contain a value.

Machine 参数中指定 contextType 上下文类型时,不能指定容器。A container cannot be specified when the Machine context type is specified in the contextType parameter.

ApplicationDirectory 参数中指定 contextType 时,必须指定 name 或 container。A name or container must be specified when ApplicationDirectory is specified in the contextType parameter.

contextType 参数不包含有效的 ContextType 枚举值。The contextType parameter does not contain a valid ContextType enumeration value.

options 参数不包含有效 ContextOptions 枚举值的组合。The options parameter does not contain a combination of valid ContextOptions enumeration values.

注解

如果为 Domain 主体上下文指定的容器不是有效的容器,则可能会在连接到服务器的后续目录操作调用中引发 InvalidOperationExceptionThe InvalidOperationException may be thrown in subsequent directory operations calls that connect to the server if the container specified for a Domain principal context is not a valid container. 容器定义为一个对象,其 schema 类在其 possibleInferiors 属性中具有主体类(用户、组或计算机)。A container is defined as an object whose schema class has the principal classes, either user, group, or computer, in its possibleInferiors attribute.

适用于