-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
ldap search with paging #8310
ldap search with paging #8310
Conversation
already done the cla, somehow it still shows not signed |
Hi @jackielii , thank you for providing this pull request! To err on the side of caution, would it be possible to add an LDAP configuration parameter of The reason is, I'd like to maintain the exact current behavior for folks unless they elect to set the page size. Then we can fix the problem, while also being 100% sure we won't break anything for anyone. |
Also, I'm not sure why the CLA signing isn't working, could there be a mismatch between the email that Github thinks was used for this pull request, and the email that Github thinks you're using to sign it? Or maybe it was a transient failure? Would you be willing to try again? Sorry for the trouble with it! :-) |
0d3883a
to
587ce2f
Compare
@tyrannosaurus-becks no probs. Just amended the commit message for the author email. when it comes to
The paging is done within the call |
587ce2f
to
42c36ed
Compare
Hi @jackielii, I agree with @tyrannosaurus-becks, I think for backwards-compatibility reasons we should make the new behaviour opt-in with a config option. There are so many different LDAP/AD implementations out there that I'm afraid without the opt-in behaviour that we're likely to have a regression somewhere. |
Sorry for the late reply, as I mentioned in the earlier comments: this doesn't change the behavior of the search, it only allows searching against a bigger directory. I think the confusion comes from the SearchWithPaging vs Search: if you look at the API for SearchWithPaging. It states that:
So in summary, |
@ncabatoff and @jackielii Is there any update on this Pull request? It looks like this PR would solve the issue with pagination. |
I am anything but an expert in LDAP, so take this with a grain of salt, but: I don't believe the above is true. At a high level, perhaps, but in practice from looking at rfc2696 and the openldap client code linked, SearchWithPaging uses an LDAP extension and does not issue the same request as Search does just with a 0 instead of a non-zero page size. The RFC is over 20y old now, probably everyone supports this extension at this point, but my experience with LDAP implementations is that they have subtle differences that can come back to bite you. I maintain my belief that we should make this opt-in behaviour using a new config option. In any event, isn't it desirable to be able to configure the paging size? |
Closing out this PR, work duplicated by the change here |
this fixes #7702