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 1987471 - [RFE] Add config parameter to close client connections on failed BIND
Summary: [RFE] Add config parameter to close client connections on failed BIND
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: 389-ds-base
Version: 9.1
Hardware: x86_64
OS: Linux
high
medium
Target Milestone: rc
: 9.3
Assignee: Jamie Chapman
QA Contact: LDAP QA Team
Evgenia Martynyuk
URL:
Whiteboard: sync-to-jira
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-07-29 14:57 UTC by Renaud Marigny
Modified: 2024-03-07 04:25 UTC (History)
9 users (show)

Fixed In Version: 389-ds-base-2.3.4-2.el9
Doc Type: Enhancement
Doc Text:
.Directory Server can now close a client connection if a `bind` operation fails Previously, when a `bind` operation failed, some applications that ignore the `bind` return code could load Director Server with further requests. With the new `nsslapd-close-on-failed-bind` configuration attribute under the `cn=config` entry, the server can close a client connection when the `bind` operation fails. As a result, the server load can be reduced.
Clone Of:
Environment:
Last Closed: 2023-11-07 08:25:17 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github 389ds 389-ds-base issues 5707 0 None closed RFE - Add config parameter to close client connections on failed BIND 2023-07-20 14:12:31 UTC
Red Hat Issue Tracker IDMDS-2821 0 None None None 2023-03-01 16:15:40 UTC
Red Hat Issue Tracker IDMDS-3086 0 None None None 2023-06-02 05:48:50 UTC
Red Hat Issue Tracker IDMDS-3349 0 None None None 2023-07-12 05:43:29 UTC
Red Hat Issue Tracker RHEL-861 0 None None None 2023-07-26 10:57:52 UTC
Red Hat Product Errata RHBA-2023:6350 0 None None None 2023-11-07 08:25:47 UTC

Description Renaud Marigny 2021-07-29 14:57:18 UTC
Description of problem:

Some customers ask for the possibility to close a client connection (from RHDS side) when a BIND is failing. This is to prevent some malformed applications (that ignore BIND return code) to load the server with further requests.

We could for example add a config parameter called  nsslapd-closure-on-bind-failure for this purpose

Version-Release number of selected component (if applicable):


How reproducible:

N/A

Steps to Reproduce:

N/A

Actual results:


Expected results:


Additional info:

Comment 10 Viktor Ashirov 2023-07-28 09:56:25 UTC
Automated tests pass:
============================================================= test session starts =============================================================
platform linux -- Python 3.9.17, pytest-7.4.0, pluggy-0.13.1 -- /usr/bin/python3
cachedir: .pytest_cache
metadata: {'Python': '3.9.17', 'Platform': 'Linux-5.14.0-344.el9.x86_64-x86_64-with-glibc2.34', 'Packages': {'pytest': '7.4.0', 'pluggy': '0.13.1'}, 'Plugins': {'metadata': '3.0.0', 'html': '3.2.0', 'libfaketime': '0.1.2', 'flaky': '3.7.0'}}
389-ds-base: 2.3.4-3.el9
nss: 3.90.0-2.el9_2
nspr: 4.35.0-2.el9_2
openldap: 2.6.3-1.el9
cyrus-sasl: 2.1.27-21.el9
FIPS: disabled
rootdir: /mnt/tests/rhds/tests/upstream/ds/dirsrvtests
configfile: pytest.ini
plugins: metadata-3.0.0, html-3.2.0, libfaketime-0.1.2, flaky-3.7.0
collected 56 items / 51 deselected / 5 selected

dirsrvtests/tests/suites/basic/basic_test.py::test_bind_invalid_entry PASSED                                                            [ 20%]
dirsrvtests/tests/suites/basic/basic_test.py::test_bind_entry_missing_passwd PASSED                                                     [ 40%]
dirsrvtests/tests/suites/basic/basic_test.py::test_bind_disconnect_invalid_entry PASSED                                                 [ 60%]
dirsrvtests/tests/suites/basic/basic_test.py::test_bind_disconnect_cert_map_failed PASSED                                               [ 80%]
dirsrvtests/tests/suites/basic/basic_test.py::test_bind_disconnect_account_lockout PASSED                                               [100%]

========================================== 5 passed, 51 deselected, 35 warnings in 65.44s (0:01:05) ==========================================

Marking as Verified:Tested

Comment 14 Evgenia Martynyuk 2023-09-07 11:57:23 UTC
The RN text draft in prepared in the DocText field. Sending to the SME review.

Comment 15 Evgenia Martynyuk 2023-09-13 21:36:41 UTC
RN text passed SME and peer review

Comment 17 errata-xmlrpc 2023-11-07 08:25:17 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 (389-ds-base bug fix and enhancement update), 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-2023:6350

Comment 18 Red Hat Bugzilla 2024-03-07 04:25:06 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 120 days


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