Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1290725

Summary: SimplePagedResults -- in the search error case, simple paged results slot was not released.
Product: Red Hat Enterprise Linux 7 Reporter: Jan Kurik <jkurik>
Component: 389-ds-baseAssignee: Noriko Hosoi <nhosoi>
Status: CLOSED ERRATA QA Contact: Viktor Ashirov <vashirov>
Severity: urgent Docs Contact:
Priority: urgent    
Version: 7.0CC: jkurik, msauton, nhosoi, nkinder, rmeggins, spichugi
Target Milestone: rcKeywords: ZStream
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 389-ds-base-1.3.4.0-22.el7_2 Doc Type: Bug Fix
Doc Text:
Previously, if a simple paged results search failed in the back end, the simple paged results slot was not released. Consequently, the simple paged results slots in a connection object could be accumulated. With this update, the simple paged results slot is released correctly when a search fails, and unused simple paged results slots are no longer left in a connection object.
Story Points: ---
Clone Of: 1290242 Environment:
Last Closed: 2016-02-16 10:50:30 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: 1290242    
Bug Blocks:    

Description Jan Kurik 2015-12-11 08:55:20 UTC
This bug has been copied from bug #1290242 and has been proposed
to be backported to 7.2 z-stream (EUS).

Comment 4 Simon Pichugin 2016-01-11 15:12:53 UTC
[root@serv ~]# rpm -qa | grep 389
389-ds-base-1.3.4.0-23.el7_2.x86_64
389-ds-base-libs-1.3.4.0-23.el7_2.x86_64

Verification steps:
1. Install and configure the Directory Server WITHOUT a suffix "o=redhat";

2. Compile paged_def.c after adjusting the Directory Manager's password and server port.
Note: the suffix o=redhat should not be adjusted.
https://fedorahosted.org/389/attachment/ticket/47707/paged_def.c
[root@serv ~]# cc paged_def.c  -o testpagedsearch -lldap

3. Run the compiled paged_def.
[root@serv ~]# ./testpagedsearch

4. The access log shouldn't contain the result line with "err=32" AND a large pr_idx. E.g.,
> [..] conn=1 op=130870 RESULT err=32 tag=101 nentries=0 etime=0 notes=P pr_idx=43623
[root@serv ~]# grep "err=32" /var/log/dirsrv/slapd-serv/access
[root@serv ~]# echo $?
1

Marking as verified.

Comment 6 errata-xmlrpc 2016-02-16 10:50:30 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHSA-2016-0204.html