Run the following script on the server running the central administration, in a new PowerShell process:
Automated installation script for LDAPCP SE
1<#
2.SYNOPSIS 3 Deploys the SharePoint solution LDAPCPSE.wsp, created with the deployment mode "Application"
4.DESCRIPTION 5 Run this script ONLY on the server running the central administration, in a new PowerShell process.
6 The script does not require any modification, except to update the path in $packagefullpath.
7.LINK 8 https://ldapcp.com/docs-se/usage/installation/
9#>1011$product="LDAPCPSE"12$packagefullpath="C:\YvanData\$product.wsp"# Only update the path here1314# Add the solution if it's not already present in the farm15if($null-eq(Get-SPSolution-Identity"$product.wsp"-ErrorActionSilentlyContinue)){16Write-Host"Adding solution $product.wsp to the farm..."17Add-SPSolution-LiteralPath$packagefullpath18}1920$count=021while(($count-lt20)-and($null-eq$solution))22{23Write-Host"Waiting for the solution $product.wsp to be available..."24Start-Sleep-Seconds525$solution=Get-SPSolution-Identity"$product.wsp"26$count++27}2829if($null-eq$solution){30Write-Error"Solution $product.wsp could not be found in the farm."31throw("Solution $product.wsp could not be found in the farm.")32}3334Write-Host"Deploying solution $product.wsp globally..."35Install-SPSolution-Identity"$product.wsp"-GACDeployment3637$solution=Get-SPSolution-Identity"$product.wsp"38$count=039while(($count-lt20)-and($false-eq$solution.Deployed))40{41Write-Host"Waiting for the solution $product.wsp to be deployed..."42Start-Sleep-Seconds1043$solution=Get-SPSolution-Identity"$product.wsp"44$count++45}4647if($null-ne(Get-SPFeature|Where-Object{$_.SolutionId-eq$solution.SolutionId})-or48$null-ne(Get-SPClaimProvider-Identity"$product"-ErrorActionSilentlyContinue)){49Write-Warning"The claims provider and/or the features are already installed, skip Install-SPFeature"50}else{51Write-Host"Installing the features in the solution $product.wsp..."52Install-SPFeature-SolutionId$solution.Id-AllExistingFeatures53}54Write-Host"Finished."
Do the following on the server running the central administration:
To be enabled, LDAPCP SE must be associated with the SPTrustedLoginProvider created when the federation was configured. Execute this script on the server running the central administration: