Yvand / LDAPCP

A claims provider to connect SharePoint Subscription / 2019 / 2016 with Active Directory and LDAP directories in federated authentication
https://ldapcp.com
Apache License 2.0
57 stars 25 forks source link

EntraCP claimprovider issue #198

Closed subas-hub closed 5 months ago

subas-hub commented 10 months ago

Hi @Yvand , Please could you help me to fix this issue on EntraCP. I am not sure why EntraCP is looking for ldacp.

PS C:\Windows\system32> $adfs1 = Get-SPTrustedIdentityTokenIssuer "AzureADTrust" $adfs1.ClaimProviderName = "EntraCP" $adfs1.Update() Exception setting "ClaimProviderName": "Could not load file or assembly 'ldapcp, Version=1.0.0.0, Culture=neutral, PublicKeyToken=80be731bc1a1a740' or one of its dependencies. The system cannot find the file specified." At line:2 char:1

$adfs1.ClaimProviderName = "EntraCP"

Exception calling "Update" with "0" argument(s): "Could not load file or assembly 'ldapcp, Version=1.0.0.0, Culture=neutral, PublicKeyToken=80be731bc1a1a740' or one of its dependencies. The system cannot find the file specified." At line:3 char:1

$adfs1.Update()

Yvand commented 10 months ago

Hi @subas-hub, EntraCP does not need LDAPCP, but I assume that SharePoint finds LDAPCP when it parses the existing claims providers, and somehow it cannot load it

what is the output of this cmdlet: Get-SPClaimProvider

is ldapcp.dll installed in the GAC of the machine where you run your commands?

subas-hub commented 10 months ago

Hi @Yvand thanks for your response. Yes, ldapcp.dll is still there in C:\Windows\Microsoft.NET\assembly\GAC_MSIL\ldapcp\v4.0_1.0.0.0__80be731bc1a1a740 as i have previously installed and seems like uninstallation not cleared out.

DisplayName : LDAPCP Description : LDAPCP IsEnabled : True IsUsedByDefault : True IsVisible : True AssemblyName : ldapcp, Version=1.0.0.0, Culture=neutral, PublicKeyToken=80be731bc1a1a740 TypeName : ldapcp.LDAPCP ClaimProvider : ldapcp.LDAPCP ClaimProviderType : ldapcp.LDAPCP IsValid : True UpgradedPersistedProperties : {}

Yvand commented 10 months ago

Can you test if this command runs successfully: Add-Type -AssemblyName "ldapcp, Version=1.0.0.0, Culture=neutral, PublicKeyToken=80be731bc1a1a740"

github-actions[bot] commented 8 months ago

Stale issue message