dsconf localhost localpwp get cn=config fails with "object has no attribute 'get_attr_list'". This appears to be because PwPolicyManager is defined as:
dsconf localhost localpwp get cn=config
PwPolicyManager(object) (src/lib389/lib389/pwpolicy.py)
PwPolicyManager(object)
And when used by src/lib389/lib389/cli_conf/pwpolicy.py, it calls:
pwp_manager = PwPolicyManager(inst) policy_type = _get_policy_type(inst, targetdn) attr_list = pwp_manager.get_attr_list()
Since PwPolicyManager is not a subclass of DSLdapObject, get_attr_list() will never exist.
Since PwPolicyManager is related to the cn=config global entry, shouldn't this be an extension of src/lib389/lib389/config.py's Config type for get/set of the attributes in question?
@mreynolds and @spichugi I think you were the two authors of this file, so maybe you can explain the intent a bit better?
Reported by: https://bugzilla.suse.com/show_bug.cgi?id=1158506
Metadata Update from @vashirov: - Custom field origin adjusted to None - Custom field reviewstatus adjusted to None - Custom field rhbz adjusted to https://bugzilla.redhat.com/show_bug.cgi?id=1776227
Ping @spichugi for some advice here,
Already fixed in https://pagure.io/389-ds-base/issue/50818
Metadata Update from @mreynolds: - Issue close_status updated to: duplicate - Issue status updated to: Closed (was: Open)
389-ds-base is moving from Pagure to Github. This means that new issues and pull requests will be accepted only in 389-ds-base's github repository.
This issue has been cloned to Github and is available here: - https://github.com/389ds/389-ds-base/issues/3823
If you want to receive further updates on the issue, please navigate to the github issue and click on subscribe button.
subscribe
Thank you for understanding. We apologize for all inconvenience.
Metadata Update from @spichugi: - Issue close_status updated to: wontfix (was: duplicate)
Login to comment on this ticket.