Configure LDAPCP

LDAPCP can be customized to fit your needs and your environment.

Configure with administration pages

LDAPCP comes with 2 administration pages added in central administration > Security:

  • Global configuration: Add/remove LDAP servers and configure general settings
  • Claim types configuration: Define the claim types, and their mapping with LDAP objects

Configure with PowerShell

Starting with v10, LDAPCP can be configured with PowerShell:

Add-Type -AssemblyName "ldapcp, Version=, Culture=neutral, PublicKeyToken=80be731bc1a1a740"
$config = [ldapcp.LDAPCPConfig]::GetConfiguration("LDAPCPConfig")

# To view current configuration

# Update some settings, e.g. configure augmentation:
$config.EnableAugmentation = $true
$config.MainGroupClaimType = ""

# Reset claim types configuration list to default

# Reset the whole configuration to default

# Add a new entry to the claim types configuration list
$newCTConfig = New-Object ldapcp.ClaimTypeConfig
$newCTConfig.ClaimType = "ClaimTypeValue"
$newCTConfig.EntityType = [ldapcp.DirectoryObjectType]::User
$newCTConfig.LDAPClass = "LDAPClassVALUE"
$newCTConfig.LDAPAttribute = "LDAPAttributeVALUE"

# Remove a claim type from the claim types configuration list

LDAPCP configuration is stored as a persisted object in SharePoint configuration database, and it can be returned with this SQL command:

SELECT Id, Name, cast (properties as xml) AS XMLProps FROM Objects WHERE Name = 'LdapcpConfig'