Bug 1790259 - Change the default behavior of 'nsslapd-verify-filter-schema'
Summary: Change the default behavior of 'nsslapd-verify-filter-schema'
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: 389-ds-base
Version: 8.2
Hardware: Unspecified
OS: Unspecified
Target Milestone: rc
: 8.2
Assignee: mreynolds
QA Contact: RHDS QE
Marc Muehlfeld
Depends On:
Blocks: 1788322
TreeView+ depends on / blocked
Reported: 2020-01-13 00:43 UTC by Viktor Ashirov
Modified: 2023-02-12 21:52 UTC (History)
6 users (show)

Fixed In Version: 389-ds-1.4-8020020200120164339.bf00efc9
Doc Type: Known Issue
Doc Text:
.Directory Server warns about missing attributes in the schema if those attributes are used in a search filter If you set the `nsslapd-verify-filter-schema` parameter to `warn-invalid`, Directory Server processes search operations with attributes that are not defined in the schema and logs a warning. With this setting, Directory Server returns requested attributes in search results, regardless whether the attributes is defined in the schema or not. A future version of Directory Server will change the default setting of `nsslapd-verify-filter-schema` to enforce stricter checks. The new default will warn about attributes that are missing in the schema, and reject requests or return only partial results.
Clone Of:
Last Closed: 2020-04-28 16:01:22 UTC
Type: Bug
Target Upstream Version:

Attachments (Terms of Use)

System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHELPLAN-32305 0 None None None 2023-02-12 21:52:05 UTC
Red Hat Product Errata RHBA-2020:1703 0 None None None 2020-04-28 16:01:43 UTC

Description Viktor Ashirov 2020-01-13 00:43:33 UTC
Description of problem:
With 'nsslapd-verify-filter-schema' set to 'warn', server doesn't return results for the attribute that doesn't exist in schema. In upstream behavior was changed, new value is 'warn-invalid' that warns about the attribute being missing in schema, but still returning it in the results.

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

How reproducible:

Steps to Reproduce:
1. Run dirsrvtests/tests/suites/plugins/acceptance_test.py

Actual results:
Test fails

Expected results:
Test should pass

Additional info:

Comment 9 Viktor Ashirov 2020-02-07 11:56:49 UTC
The default value is warn-invalid:
# ldapsearch -D cn=Directory\ manager -w Directory_Manager_Password -b cn=config  nsslapd-verify-filter-schema | grep nsslapd-verify-filter-schema 
# requesting: nsslapd-verify-filter-schema 
nsslapd-verify-filter-schema: warn-invalid

And the tests pass:
============================================================== test session starts ===============================================================
platform linux -- Python 3.6.8, pytest-5.3.5, py-1.8.1, pluggy-0.13.1 -- /usr/bin/python3.6
cachedir: .pytest_cache
metadata: {'Python': '3.6.8', 'Platform': 'Linux-4.18.0-174.el8.x86_64-x86_64-with-redhat-8.2-Ootpa', 'Packages': {'pytest': '5.3.5', 'py': '1.8.1', 'pluggy': '0.13.1'}, 'Plugins': {'metadata': '1.8.0', 'html': '2.0.1'}}
nss: 3.44.0-14.el8
nspr: 4.21.0-2.el8_0
openldap: 2.4.46-11.el8
cyrus-sasl: 2.1.27-1.el8
FIPS: disabled
rootdir: /mnt/tests/rhds/tests/upstream/ds/dirsrvtests, inifile: pytest.ini
plugins: metadata-1.8.0, html-2.0.1
collected 4 items                                                                                                                                

dirsrvtests/tests/suites/filter/schema_validation_test.py::test_filter_validation_config PASSED                                            [ 25%]
dirsrvtests/tests/suites/filter/schema_validation_test.py::test_filter_validation_enabled PASSED                                           [ 50%]
dirsrvtests/tests/suites/filter/schema_validation_test.py::test_filter_validation_warn_safe PASSED                                         [ 75%]
dirsrvtests/tests/suites/filter/schema_validation_test.py::test_filter_validation_warn_unsafe PASSED                                       [100%]

======================================================== 4 passed, 12 warnings in 13.64s =========================================================
Marking as VERIFIED.

Comment 11 errata-xmlrpc 2020-04-28 16:01:22 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.


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