DomainController Class
The DomainController class defines how and where to import data from the Active Directory directory service domain controller.
System.Object
Microsoft.SharePoint.Portal.UserProfiles.DomainController
Public Constructors
The following table shows the constructors of the DomainController class and a brief description of each.
Name | Description |
---|---|
DomainController | Initializes a new instance of the DomainController class. |
Public Properties
The following table shows the properties of the DomainController class, the data type of each property, and a brief description of each.
Name | Data Type | Description |
---|---|---|
AutoDiscover | Boolean | Gets a value indicating whether the domain controller for importing user profiles is discovered automatically. If AutoDiscover is true, the domain controller that was specified in the Server property is ignored. By default, AutoDiscover is true. |
DataSource | Microsoft.SharePoint.Portal.UserProfiles.DataSource | Gets the DataSource object. |
DomainName | String | Gets or sets the unique identifier for the domain from which user profiles are imported. |
PageSize | Int32 | Gets or sets the page size in a paged search. For each request by the client, the server returns, at most, the number of objects as set by the page size. |
PageTimeout | Int32 | Gets or sets the time limit, in seconds, for the amount of time the server should search a page of results. When the time limit is reached, the server stops searching and returns the result obtained up to that point. The default value is 120 seconds. |
Port | Int32 | Gets or sets the port number for the Active Directory directory service server from which to import user profiles. |
SearchBase | String | Gets or sets the name of the AD node from which to import user profiles. |
SearchFilter | String | Gets or sets the search filters or queries added to the Lightweight Directory Access Protocol (LDAP) query for importing user profiles. The default is &(objectCategory=Person)(objectClass=User)) |
SearchScope | System.DirectoryServices.SearchScope | Gets or sets the search scope, such as how deep to search. |
Server | String | Gets or sets the domain controller name. |
ServerTimeout | Int32 | Gets or sets the time limit, in seconds, for the amount of time the server should observe in a search. When the time limit is reached, the server stops searching and returns the results accumulated to that point. If this value is zero, the time-out period is infinite. The default for this value is 120. |
UseSSL | Boolean | Gets a value indicating whether to use Secure Socket Layer (SSL) - secured connections for importing user profiles from Microsoft Active Directory directory service. |
Thread Safety
Any public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread safe.
Remarks
Each data source can have several domains. You can define an import from mulltiple domains by defining multiple domain controller entries and adding them into the DomainControllers property of the DataSource object. Each domain typically has one domain controller, but it may have more than one controller. You can define multiple domain controller entries for the same domain with a different import setting, such as, a different partition of the domain.
Example
The following code example shows the use of the DomainController class.
Requirements
Namespace: Microsoft.SharePoint.Portal.UserProfiles
Platforms: Microsoft Windows Server 2003
Assembly: Microsoft.SharePoint.Portal (in Microsoft.SharePoint.Portal.dll)
Security: Code Access Security