Bug 513172
| Summary: | No error messages returned if the returned page size is greater than the nsslapd-sizelimit. | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Red Hat Directory Server | Reporter: | Sankar Ramalingam <sramling> | ||||
| Component: | Directory Server | Assignee: | Noriko Hosoi <nhosoi> | ||||
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Viktor Ashirov <vashirov> | ||||
| Severity: | medium | Docs Contact: | |||||
| Priority: | medium | ||||||
| Version: | 9.0 | CC: | jgalipea, rmeggins | ||||
| Target Milestone: | --- | ||||||
| Target Release: | --- | ||||||
| Hardware: | All | ||||||
| OS: | Linux | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2016-05-06 14:38:48 UTC | Type: | --- | ||||
| Regression: | --- | Mount Type: | --- | ||||
| Documentation: | --- | CRM: | |||||
| Verified Versions: | Category: | --- | |||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||
| Embargoed: | |||||||
| Bug Depends On: | |||||||
| Bug Blocks: | 434914, 517385 | ||||||
| Attachments: |
|
||||||
|
Description
Sankar Ramalingam
2009-07-22 12:11:00 UTC
Created attachment 354796 [details]
git patch file for back-ldbm.h and ldbm_search.c
Files:
ldap/servers/slapd/back-ldbm/back-ldbm.h
ldap/servers/slapd/back-ldbm/ldbm_search.c
Problem Description:
Simple Paged Results returns one page in one operation. Sizelimit was reset at the beginning of each opeartion.
Fix Description:
search_result_set is stashed and each page is retrieved from the same search_result_set. Thus, let search_result_set keep the current sizelimit and use the value for checking the limit. The value is valid both in one operation and multiple operations using one search_result_set.
Reviewed by Rich (Thank you!!) Pushed to master. $ git merge paged Updating 35a54ff..c3f6ff6 Fast forward ldap/servers/slapd/back-ldbm/back-ldbm.h | 3 ++- ldap/servers/slapd/back-ldbm/ldbm_search.c | 22 ++++++++++++++++------ 2 files changed, 18 insertions(+), 7 deletions(-) $ git push Counting objects: 15, done. Compressing objects: 100% (8/8), done. Writing objects: 100% (8/8), 1.15 KiB, done. Total 8 (delta 6), reused 0 (delta 0) To ssh://git.fedorahosted.org/git/389/ds.git 35a54ff..c3f6ff6 master -> master 1. added lots of users 2. set nssldapd-sizelimit to 20 # ldapsearch -x -h `hostname` -p 389 -D "cn=Directory Manager" -w Secret123 -b "cn=config" | grep sizelimit nsslapd-sizelimit: 20 nsslapd-sizelimit: 20 3. run paged search with page size of 100 ... userPassword: nirdnatSys next page size (100): Am I missing something? I should be getting LDAP_SIZE_LIMIT_EXCEEDED correct? I think limits do not apply to Directory Manager - try a normal user. Yup - verified - RHEL 4 version: redhat-ds-base-8.2.0-2010060304.el4dsrv earch failed: LDAP_SIZELIMIT_EXCEEDED: The maximum number of search results to return has been exceeded. |