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 1666686

Summary: Error in password policy entries for a sub-tree
Product: Red Hat Enterprise Linux 8 Reporter: Akshay Adhikari <aadhikar>
Component: 389-ds-baseAssignee: mreynolds
Status: CLOSED NOTABUG QA Contact: RHDS QE <ds-qe-bugs>
Severity: medium Docs Contact:
Priority: medium    
Version: 8.0CC: lkrispen, mhonek, nkinder, rmeggins, spichugi, tbordaz, vashirov
Target Milestone: rc   
Target Release: 8.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-03-05 13:11:36 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:
Attachments:
Description Flags
Revised CI Test none

Description Akshay Adhikari 2019-01-16 11:18:45 UTC
Description of problem:

Regression can be observed in the password test suite for: dirsrvtests/tests/suites/password/pwdPolicy_inherit_global_test.py::test_entry_has_no_restrictions[off-on] 

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

389-ds-base-1.4.0.20-4.module+el8+2+a9256f9c.x86_64

How reproducible:

Every-time

Steps to Reproduce:

1. Run the following test : dirsrvtests/tests/suites/password/pwdPolicy_inherit_global_test.py::test_entry_has_no_restrictions[off-on]

Link to the code: https://pagure.io/389-ds-base/blob/master/f/dirsrvtests/tests/suites/password/pwdPolicy_inherit_global_test.py

Actual results:

Error: Constraint violation 
info: invalid password syntax - password must be at least 8 characters long

Expected results:

It should pass without any error.

Additional info:

Comment 1 mreynolds 2019-03-01 18:12:18 UTC
Upstream ticket:
https://pagure.io/389-ds-base/issue/50255

Comment 2 mreynolds 2019-03-01 20:11:04 UTC
I had to rewrite the CI test to conform to our new model (DSLdapObject).  With the new CI test I can not reproduce the problem on 1.4.0.20-3 or the latest version.

I'll attach the new CI test, and please rerun it on your system with the latest build to see if it still fails.

Thanks,
Mark

Comment 3 mreynolds 2019-03-01 20:11:48 UTC
Created attachment 1539898 [details]
Revised  CI Test

Comment 4 Akshay Adhikari 2019-03-05 13:09:46 UTC
With the new test, it is working as expected. Can we please have this fixed code in the master? Marking this BZ as not a bug.

Comment 5 mreynolds 2019-03-05 13:49:52 UTC
(In reply to Akshay Adhikari from comment #4)
> With the new test, it is working as expected. Can we please have this fixed
> code in the master? Marking this BZ as not a bug.

Yes, it is currently under review, and it should be merged by the end of the week.  Thanks!