Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LDAPCP Second Edition - MaxSearchResultsCount. #209

Closed
sgaukerud opened this issue Apr 24, 2024 · 3 comments · Fixed by #211
Closed

LDAPCP Second Edition - MaxSearchResultsCount. #209

sgaukerud opened this issue Apr 24, 2024 · 3 comments · Fixed by #211
Assignees

Comments

@sgaukerud
Copy link

Hi, @Yvand ,

In LDAPCP Classic we had the ability to adjust the MaxSearchResultsCount.
After upgrading to LDAPCP Second Edition, we do not find this option.
Is it possible to change the value in this version, or is it possible to sort the search result?

The challenge and the reason why we need this:
Our mapping for groups is set up to search on fullName, with Description as the display name.

fullName of the groups has name-format DEP, DEP-SEK1, DEP-SEK2 etc,
where the group DEP is the top-level-group and involves all users.

When we search for e.g. "DEP" in peoplepicker we do not find the group named only "DEP".
To solve this in LDAPCP Classic we set MaxSearchResultsCount=150, which means in practice we get result of all groups if we search for "DEP".

@Yvand
Copy link
Owner

Yvand commented Apr 25, 2024

Hi @sgaukerud, indeed, I did not include this property in LDAPCP SE, because I did not think it was useful, and also because it overrides the max count that SharePoint sets, when it calls claims providers, and I did not feel legit to ignore the nax count from SharePoint and dictate my own.

But I hear your scenario, I will do some tests on this and come back to you.
Are you using SharePoint Subscription with modern sites?

@Yvand Yvand self-assigned this Apr 25, 2024
@sgaukerud
Copy link
Author

Thanks for the reply.
We are using Sharepoint Subscription Edition, with classic sites.

@Yvand Yvand linked a pull request May 6, 2024 that will close this issue
@Yvand
Copy link
Owner

Yvand commented May 6, 2024

@sgaukerud I merged a PR today that re-adds the property MaxSearchResultsCount, it will be available in the next version.
Its default value is -1 (which means it is ignored).
To change its value:

Add-Type -AssemblyName "Yvand.LDAPCPSE, Version=1.0.0.0, Culture=neutral, PublicKeyToken=80be731bc1a1a740"
$config = [Yvand.LdapClaimsProvider.LDAPCPSE]::GetConfiguration()
$settings = $config.Settings
$settings.MaxSearchResultsCount = 50
$config.ApplySettings($settings, $true)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants