This article describes the steps required to install LDAPCPSE in your SharePoint farm.
Run the following script on the server running the central administration, in a new PowerShell process:
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 #>
10
11 $product = "LDAPCPSE"
12 $packagefullpath = "C:\YvanData\ $product .wsp" # Only update the path here
13
14 # Add the solution if it's not already present in the farm
15 if ( $null -eq ( Get-SPSolution -Identity " $product .wsp" -ErrorAction SilentlyContinue )) {
16 Write-Host "Adding solution $product .wsp to the farm..."
17 Add-SPSolution -LiteralPath $packagefullpath
18 }
19
20 $count = 0
21 while (( $count -lt 20 ) -and ( $null -eq $solution ))
22 {
23 Write-Host "Waiting for the solution $product .wsp to be available..."
24 Start-Sleep -Seconds 5
25 $solution = Get-SPSolution -Identity " $product .wsp"
26 $count ++
27 }
28
29 if ( $null -eq $solution ) {
30 Write-Error "Solution $product .wsp could not be found in the farm."
31 throw ( "Solution $product .wsp could not be found in the farm." )
32 }
33
34 Write-Host "Deploying solution $product .wsp globally..."
35 Install-SPSolution -Identity " $product .wsp" -GACDeployment
36
37 $solution = Get-SPSolution -Identity " $product .wsp"
38 $count = 0
39 while (( $count -lt 20 ) -and ( $false -eq $solution . Deployed ))
40 {
41 Write-Host "Waiting for the solution $product .wsp to be deployed..."
42 Start-Sleep -Seconds 10
43 $solution = Get-SPSolution -Identity " $product .wsp"
44 $count ++
45 }
46
47 if ( $null -ne ( Get-SPFeature | Where-Object { $_ . SolutionId -eq $solution . SolutionId }) -or
48 $null -ne ( Get-SPClaimProvider -Identity " $product " -ErrorAction SilentlyContinue )) {
49 Write-Warning "The claims provider and/or the features are already installed, skip Install-SPFeature"
50 } else {
51 Write-Host "Installing the features in the solution $product .wsp..."
52 Install-SPFeature -SolutionId $solution . Id -AllExistingFeatures
53 }
54 Write-Host "Finished."
Do the following on the server running the central administration:
Add the solution to the farm:
Add-SPSolution -LiteralPath "C:\YvanData\dev\LDAPCPSE.wsp"
Navigate to the central administration > Security > Manage farm solutions > click on “LDAPCPSE.wsp” > Deploy solution.
Monitor the deployment of the solution and wait for it to be fully deployed.
Install the features present in the solution:
Install-SPFeature -SolutionId "ff36c8cf-e510-42fc-8ba3-18af3c316aec" -AllExistingFeatures
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: