Bug 1589144
| Summary: | shadowWarning is not generated if passwordWarning is lower than 86400 seconds (1 day). | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 7 | Reporter: | Têko Mihinto <tmihinto> |
| Component: | 389-ds-base | Assignee: | thierry bordaz <tbordaz> |
| Status: | CLOSED ERRATA | QA Contact: | RHDS QE <ds-qe-bugs> |
| Severity: | medium | Docs Contact: | Marc Muehlfeld <mmuehlfe> |
| Priority: | unspecified | ||
| Version: | 7.5 | CC: | bsmejkal, gparente, mreynolds, nkinder, pasik, rmeggins, tbordaz |
| Target Milestone: | rc | ||
| Target Release: | 7.7 | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | 389-ds-base-1.3.9.1-2.el7 | Doc Type: | Bug Fix |
| Doc Text: |
.Directory Server did not return the `shadowWarning` attribute if `passwordWarning` was set lower than `86400`
Previously, Directory Server did not return the `shadowWarning` attribute in searches if the `passwordWarning` attribute in the `cn=config` entry was set to a value lower than `86400` seconds (1 day). This update fixes the problem. As a result, the server returns the value of the `shadowWarning` attribute in the mentioned scenario.
|
Story Points: | --- |
| Clone Of: | Environment: | ||
| Last Closed: | 2019-08-06 12:58:23 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Têko Mihinto
2018-06-08 13:34:03 UTC
IMHO it makes sense to send a warning as long as the administrator defined a no null passwordWarning (even if it is less than a day). It should be the same for all kind of accounts (including ShadowAccount) Upstream ticket: https://pagure.io/389-ds-base/issue/50091 Ticket pushed upstream -> POST Bug is still reproducible.
=============================================================================================== test session starts ===============================================================================================
platform linux -- Python 3.6.3, pytest-4.3.0, py-1.8.0, pluggy-0.9.0 -- /opt/rh/rh-python36/root/usr/bin/python3
cachedir: .pytest_cache
metadata: {'Python': '3.6.3', 'Platform': 'Linux-3.10.0-1010.el7.x86_64-x86_64-with-redhat-7.7-Maipo', 'Packages': {'pytest': '4.3.0', 'py': '1.8.0', 'pluggy': '0.9.0'}, 'Plugins': {'metadata': '1.8.0', 'html': '1.20.0'}}
389-ds-base: 1.3.9.1-1.el7
nss: 3.36.0-7.1.el7_6
nspr: 4.19.0-1.el7_5
openldap: 2.4.44-21.el7_6
cyrus-sasl: 2.1.26-23.el7
FIPS: disabled
rootdir: /mnt/tests/rhds/tests/upstream/ds/dirsrvtests/tests/suites/password, inifile:
plugins: metadata-1.8.0, html-1.20.0
collected 12 items / 11 deselected / 1 selected
pwdPolicy_warning_test.py::test_search_shadowWarning_when_passwordWarning_is_lower FAILED [100%]
========================================================================== 1 failed, 11 deselected in 10.64 seconds ==========================================================================
=============================================================================================== test session starts ===============================================================================================
platform linux -- Python 3.6.3, pytest-4.3.1, py-1.8.0, pluggy-0.9.0 -- /opt/rh/rh-python36/root/usr/bin/python3
cachedir: .pytest_cache
metadata: {'Python': '3.6.3', 'Platform': 'Linux-3.10.0-1020.el7.x86_64-x86_64-with-redhat-7.7-Maipo', 'Packages': {'pytest': '4.3.1', 'py': '1.8.0', 'pluggy': '0.9.0'}, 'Plugins': {'metadata': '1.8.0', 'html': '1.20.0'}}
389-ds-base: 1.3.9.1-2.el7
nss: 3.36.0-7.1.el7_6
nspr: 4.19.0-1.el7_5
openldap: 2.4.44-21.el7_6
cyrus-sasl: 2.1.26-23.el7
FIPS: disabled
rootdir: /mnt/tests/rhds/tests/upstream/ds/dirsrvtests/tests/suites/password, inifile:
plugins: metadata-1.8.0, html-1.20.0
collected 12 items / 11 deselected / 1 selected
pwdPolicy_warning_test.py::test_search_shadowWarning_when_passwordWarning_is_lower PASSED [100%]
============================================================================== 1 passed, 11 deselected in 10.65 seconds ===============================================================================
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://access.redhat.com/errata/RHBA-2019:2152 |