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 1776227 - Error: 'PwPolicyManager' object has no attribute 'get_attr_list'
Summary: Error: 'PwPolicyManager' object has no attribute 'get_attr_list'
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: 389-ds-base
Version: 8.2
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: 8.0
Assignee: mreynolds
QA Contact: RHDS QE
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-11-25 10:12 UTC by Viktor Ashirov
Modified: 2023-09-07 21:05 UTC (History)
7 users (show)

Fixed In Version: 389-ds-1.4-8020020200120164339.bf00efc9
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-04-28 16:01:22 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 3823 0 None closed pwpolicy get on cn=config fails 2021-01-27 11:51:11 UTC
Github 389ds 389-ds-base issues 3872 0 None closed Error: 'PwPolicyManager' object has no attribute 'get_attr_list' 2021-01-27 11:51:15 UTC
Red Hat Product Errata RHBA-2020:1703 0 None None None 2020-04-28 16:01:43 UTC

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


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