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 1966289 - Info about searchrecordslimit set search limit to 10,000 after upgrade
Summary: Info about searchrecordslimit set search limit to 10,000 after upgrade
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: ipa
Version: unspecified
Hardware: All
OS: Unspecified
medium
low
Target Milestone: beta
: ---
Assignee: Florence Blanc-Renaud
QA Contact: ipa-qe
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-05-31 20:31 UTC by cilmar@redhat.com
Modified: 2024-10-01 18:24 UTC (History)
6 users (show)

Fixed In Version: ipa-4.9.8-1.el9
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-05-17 12:44:18 UTC
Type: Bug
Target Upstream Version:
Embargoed:
cilmar: needinfo-


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker FREEIPA-7117 0 None None None 2021-10-19 16:31:46 UTC
Red Hat Product Errata RHBA-2022:2387 0 None None None 2022-05-17 12:44:29 UTC

Comment 3 Rob Crittenden 2021-06-01 17:59:00 UTC
IPA does not reset the search limit on upgrades. I can't explain why yours apparently was, though since it is managed per-server is it possible that some had the value set and others did not?

As for why "ipa config-mod --searchrecordslimit=10000" doesn't update cn=config there are two reasons.

1. cn=config is not replicated so the command would have to contact every IPA server and change the value which can be problematic if, for example, one or more servers are not reachable.
2. IPA tries to discourage enumerating all of any given entry type and prefers to have the user provide a search term.

This is to prevent things like this common pattern from the NIS world: ypcat passwd | grep someuser

Rather than id someuser or getent passwd someuser

Is there a reason you need > 2000 entries from a search?

Comment 4 Florence Blanc-Renaud 2021-06-03 09:52:14 UTC
Additional info:
"ipa config-mod --searchrecordslimit=10000" writes the settings into cn=ipaConfig,cn=etc,$BASEDN (in the attribute ipaSearchRecordsLimit). This is a client-side setting, meaning that it limits the number of records asked by the commands "ipa *-find" or through the WebGUI.

If the client-side limit is set to 10000 but the server-side limit is lower, the server-side limit is enforced (can be set globally for the LDAP server below cn=config, or below cn=config,cn=ldbm database,cn=plugins,cn=config).

Comment 6 Rob Crittenden 2021-07-20 15:32:20 UTC
Back in 2011 in commit https://pagure.io/freeipa/c/9724251292e4c0797367fcc351a9f16f30c6aefe there was the intention to increase the search limits. Unfortunately there was an issue with the increase of nsslapd-sizelimit because of the way the update was written. By using the default keyword the value only gets set if one doesn't already exist, and since the server defaults to 2000, the value wasn't updated. We should correct this update file to be:

replace: nsslapd-sizelimit:2000:100000

Comment 8 Rob Crittenden 2021-08-19 19:53:11 UTC
Upstream ticket:
https://pagure.io/freeipa/issue/8962

Comment 9 Rob Crittenden 2021-09-03 13:01:05 UTC
Fixed upstream
master:
https://pagure.io/freeipa/c/b91c0afd0b5ae9eb4954078f8c76f2914daa1d85

Comment 10 Florence Blanc-Renaud 2021-09-08 06:25:07 UTC
Fixed upstream
ipa-4-9:
https://pagure.io/freeipa/c/3fb0f5333613beabeead3feb73dc0fea9694bcdc

Comment 11 Florence Blanc-Renaud 2021-12-03 09:37:55 UTC
Included with the rebase to 4.9.8

Comment 12 anuja 2021-12-13 11:32:29 UTC
Pre-verified using:
ipa-server-4.9.8-1.el9.x86_64

    RHEL7.9
    [root@master ~]# rpm -qa ipa-server
    ipa-server-4.6.8-5.el7_9.10.x86_64
    [root@master ~]# ldapsearch -h localhost -D "cn=Directory Manager" -w Secret123 -b "cn=config" -xLLL | grep nsslapd-sizelimit
    nsslapd-sizelimit: 2000
    nsslapd-sizelimit: 2000

    +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    RHEL9
    [root@master ~]# rpm -qa ipa-server
    ipa-server-4.9.8-1.el9.x86_64
    [root@master ~]# ldapsearch -h localhost -D "cn=Directory Manager" -w Secret123 -b "cn=config" -xLLL | grep nsslapd-sizelimit
    nsslapd-sizelimit: 100000
    nsslapd-sizelimit: 2000
    [root@master ~]#

Comment 14 Florence Blanc-Renaud 2021-12-16 07:35:47 UTC
Automation added upstream in  ipatests/test_integration/test_installation.py::TestInstallMaster::test_nsslapd_sizelimit
master:
https://pagure.io/freeipa/c/56e4f33ce630a6a310518f25b67d46fb31f7919e

Comment 15 Florence Blanc-Renaud 2021-12-16 12:53:45 UTC
Automation added upstream:
ipa-4-9:
https://pagure.io/freeipa/c/465f1669a6c5abc72da1ecaf9aefa8488f80806c

Comment 21 errata-xmlrpc 2022-05-17 12:44:18 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 (new packages: ipa), 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://access.redhat.com/errata/RHBA-2022:2387


Note You need to log in before you can comment on or make changes to this bug.