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

fix paged search with multiple bases (LDAP) #13865

Merged
merged 3 commits into from
Jan 29, 2019

Conversation

blizzz
Copy link
Member

@blizzz blizzz commented Jan 28, 2019

  • Integration test
  • actual fix
  • refactor (not to backport) will do as seperate PR, less mess

There are a couple concepts in LDAP around the search. On is that parallel searches in multiple bases are allowed. The other one are paged searches, that allows to browse through the directory. Alas, they are incompatible to each other. Since we do paged results by default (if present, which in 99% is), we leave the parallel search asside. This PR goes the quick way with so it is easy to backport. A follow up PR will follow to refactor functions for 16.

Included is an integration test (commit 2) that establishes the failing scenario, commit 3 contains the simple, backportable fix.

Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Copy link
Member

@MorrisJobke MorrisJobke left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code makes sense 👍

@blizzz blizzz added 3. to review Waiting for reviews and removed 2. developing Work in progress labels Jan 28, 2019
@blizzz
Copy link
Member Author

blizzz commented Jan 28, 2019

/backport to stable15

@blizzz
Copy link
Member Author

blizzz commented Jan 28, 2019

/backport to stable14

@blizzz blizzz changed the title WIP. fix paged search with multiple bases (LDAP) fix paged search with multiple bases (LDAP) Jan 28, 2019
@blizzz blizzz removed the 3. to review Waiting for reviews label Jan 28, 2019
parallel search is not compatible with paged search, but the letter is
usually always applied.

Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
@blizzz blizzz force-pushed the fix/noid/ldap-pagedsearch-multiplebases branch from 8f0f9d8 to c868892 Compare January 28, 2019 22:01
@blizzz blizzz added the 3. to review Waiting for reviews label Jan 28, 2019
Copy link
Member

@juliusknorr juliusknorr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested and works 👍

@blizzz
Copy link
Member Author

blizzz commented Jan 29, 2019

@juliushaertl is drone showing something different to me?

screenshot_20190129_105850

Or, if that was from the second commit that introduced the integration test only, then this is what should have happened, otherwise the test wouldn't work.

@juliusknorr
Copy link
Member

Or, if that was from the second commit that introduced the integration test only, then this is what should have happened, otherwise the test wouldn't work.

Yes, just checked the status on the 2nd commit, since the other one was not on the screen. 🙈 Sorry for the noise there.

@MorrisJobke MorrisJobke merged commit 754932c into master Jan 29, 2019
@MorrisJobke MorrisJobke deleted the fix/noid/ldap-pagedsearch-multiplebases branch January 29, 2019 13:22
@backportbot-nextcloud
Copy link

backport to stable15 in #13884

@backportbot-nextcloud
Copy link

The backport to stable14 failed. Please do this backport manually.

@juliusknorr
Copy link
Member

@blizzz

The backport to stable14 failed. Please do this backport manually.

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

Successfully merging this pull request may close these issues.

3 participants