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

Claims augmentation nested groups depth #224

Closed ChristophHannappel closed 2 months ago

ChristophHannappel commented 3 months ago

Hello,

is there a way do configure how deep LDAPCPSE follows nested groups when doing the claims augmention? I ran a test with the following result:

Groupname Member Augmentation Works
Nested-0 UserA
Nested-1 Nested-0
Nested-2 Nested-1
Nested-3 Nested-2
Nested-4 Nested-3

Thank you very much.

Yvand commented 3 months ago

Hello @ChristophHannappel, the depth cannot be configured but it should not be limited. But the current test scenario tests only 1 nested level, so there may be a bug/limitation I missed.

To understand your scenario, can you send me the output of this script:

Add-Type -AssemblyName "Yvand.LDAPCPSE, Version=1.0.0.0, Culture=neutral, PublicKeyToken=80be731bc1a1a740"
$config = [Yvand.LdapClaimsProvider.LDAPCPSE]::GetConfiguration()
$config.Settings.LdapConnections | fl EnableAugmentation, GetGroupMembershipUsingDotNetHelpers
ChristophHannappel commented 3 months ago

Hello @Yvand, as requested the output of the script:

Add-Type -AssemblyName "Yvand.LDAPCPSE, Version=1.0.0.0, Culture=neutral, PublicKeyToken=80be731bc1a1a740"
$config = [Yvand.LdapClaimsProvider.LDAPCPSE]::GetConfiguration()
$config.Settings.LdapConnections | fl EnableAugmentation, GetGroupMembershipUsingDotNetHelpers

EnableAugmentation                   : True
GetGroupMembershipUsingDotNetHelpers : True
Yvand commented 2 months ago

Hello @ChristophHannappel, I just tested this level of depth using the same configuration, and it got all the nested groups as expected, including at the 4th level of depth as in your initial message. To double check what happens in your environment, can you set the LDAPCP logs to verbose: "LDAPCPSE:*"| Set-SPLogLevel -TraceSeverity Verbose Then try again and check the logs during the augmentation?

ChristophHannappel commented 2 months ago

Ok, now it works. guess i should have done a reboot. Sorry for the inconvenience.