Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

ConnectionManager.AddActiveDirectoryConnection method (ConnectionType, String, String, Boolean, String, String, SecureString, List<DirectoryServiceNamingContext>, String, String, String)

Adds an Active Directory connection for the current service context.

Namespace:  Microsoft.Office.Server.UserProfiles
Assembly:  Microsoft.Office.Server.UserProfiles (in Microsoft.Office.Server.UserProfiles.dll)
public DirectoryServiceConnection AddActiveDirectoryConnection(
	ConnectionType type,
	string displayName,
	string server,
	bool useSSL,
	string accountDomain,
	string accountUsername,
	SecureString accountPassword,
	List<DirectoryServiceNamingContext> namingContexts,
	string spsClaimProviderTypeValue,
	string spsClaimProviderIdValue,
	string adClaimIDMapAttribute
)

Parameters

type
Type: Microsoft.Office.Server.UserProfiles.ConnectionType

An enumeration value that specifies the connection type.

displayName
Type: System.String

The display name of the connection.

server
Type: System.String

The server associated with the connection.

useSSL
Type: System.Boolean

true to use SSL encryption for the connection; otherwise, false.

accountDomain
Type: System.String

The domain name associated with the connection credentials.

accountUsername
Type: System.String

The user name associated with the connection credentials.

accountPassword
Type: System.Security.SecureString

The user password associated with the connection credentials.

namingContexts
Type: System.Collections.Generic.List<DirectoryServiceNamingContext>

The directory service naming contexts associated with the connection.

spsClaimProviderTypeValue
Type: System.String

The type for the claims provider definition.

spsClaimProviderIdValue
Type: System.String

The ID of the claims provider for SharePoint Server.

adClaimIDMapAttribute
Type: System.String

The claim ID map attribute for Active Directory.

Return value

Type: Microsoft.Office.Server.UserProfiles.DirectoryServiceConnection
The Active Directory connection for the current service context.
ExceptionCondition
DuplicateEntryException

The service context already has a connection with the same name as displayName.

This method adds an Active Directory connection for the current service context. See User profile property data types for a table that lists the Active Directory Domain Services (AD DS) data types and the .NET data types that are compatible with the data types of SharePoint 2010 user profile properties. Also see Connection filter data types and operators for a table that lists the operators that are available for each Active Directory Domain Services (AD DS) data type.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.