Bug 1776227

Summary: Error: 'PwPolicyManager' object has no attribute 'get_attr_list'
Product: Red Hat Enterprise Linux 8 Reporter: Viktor Ashirov <vashirov>
Component: 389-ds-baseAssignee: mreynolds
Status: CLOSED ERRATA QA Contact: RHDS QE <ds-qe-bugs>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 8.2CC: kyoneyam, lkrispen, nkinder, pasik, spichugi, tbordaz, vashirov
Target Milestone: rcFlags: pm-rhel: mirror+
Target Release: 8.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 389-ds-1.4-8020020200120164339.bf00efc9 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-04-28 16:01:22 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 Viktor Ashirov 2019-11-25 10:12:15 UTC
Description of problem:
When I try to get local password policy entry using dsconf, it fails with an error.

Version-Release number of selected component (if applicable):
389-ds-base-1.4.2.4-3.module+el8.2.0+4718+1b57dca2.x86_64
python3-lib389-1.4.2.4-3.module+el8.2.0+4718+1b57dca2.noarch

How reproducible:
always

Steps to Reproduce:
1. dsconf -D "cn=Directory Manager" ldap://localhost localpwp addsubtree ou=people,dc=example,dc=com
Enter password for cn=Directory Manager on ldap://localhost: 
Successfully created subtree password policy

2. dsconf -D "cn=Directory Manager" ldap://localhost localpwp get ou=people,dc=example,dc=com 
Enter password for cn=Directory Manager on ldap://localhost: 
Error: 'PwPolicyManager' object has no attribute 'get_attr_list'


Actual results:
Error is returned instead of attributes:
Error: 'PwPolicyManager' object has no attribute 'get_attr_list'

Expected results:
Local password policy should be returned.

Additional info:

Comment 3 mreynolds 2020-01-13 23:06:14 UTC
Upstream ticket:
https://pagure.io/389-ds-base/issue/50818

Comment 5 Viktor Ashirov 2020-01-22 21:39:43 UTC
Builds tested: 
389-ds-base-1.4.2.4-6.module+el8.2.0+5509+885f7879.x86_64.rpm
python3-lib389-1.4.2.4-6.module+el8.2.0+5509+885f7879.noarch.rpm


# dsconf -D "cn=Directory Manager" ldap://localhost localpwp addsubtree ou=people,dc=example,dc=com
Enter password for cn=Directory Manager on ldap://localhost: 
Successfully created subtree password policy

# dsconf -D "cn=Directory Manager" ldap://localhost localpwp get ou=people,dc=example,dc=com 
Enter password for cn=Directory Manager on ldap://localhost: 
Local Subtree Policy Policy: cn=cn\3DnsPwPolicyEntry_subtree\2Cou\3Dpeople\2Cdc\3Dexample\2Cdc\3Dcom,cn=nsPwPolicyContainer,ou=people,dc=example,dc=com
------------------------------------

Marking as VERIFIED.

Comment 7 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.

https://access.redhat.com/errata/RHBA-2020:1703