Bug 2064689

Summary: dsidm account subtree-status fails with TypeError
Product: Red Hat Directory Server Reporter: bsmejkal
Component: 389-ds-baseAssignee: mreynolds
Status: CLOSED ERRATA QA Contact: LDAP QA Team <idm-ds-qe-bugs>
Severity: unspecified Docs Contact: Zuzana Zoubkova <zzoubkov>
Priority: high    
Version: 12.2CC: aadhikar, emartyny, idm-ds-dev-bugs, mreynolds, pasik, vcech
Target Milestone: DS12.2Keywords: TestCaseProvided, Triaged
Target Release: dirsrv-12.2   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: redhat-ds-12-9020020230314150545.1674d574 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-05-30 09:40:35 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 bsmejkal 2022-03-16 10:58:09 UTC
Description of problem:
Running "dsidm account subtree-status" command fails with TypeError.


Version-Release number of selected component (if applicable):
389-ds-base-2.0.14-3.module+el9dsrv+14387+a6c313de.x86_64
389-ds-base-2.0.14-1.el9.x86_64 

How reproducible:
Always

Steps to Reproduce:
1. 
#  dsidm -D "cn=Directory Manager" ldap://localhost -b "dc=example,dc=com" account subtree-status "ou=People,dc=example,dc=com" -f "(uid=*)"


Actual results:

DEBUG: expected list of strings or None
Traceback (most recent call last):
  File "/usr/sbin/dsidm", line 140, in <module>
    result = args.func(inst, dsrc_inst['basedn'], log, args)
  File "/usr/lib/python3.9/site-packages/lib389/cli_idm/account.py", line 87, in subtree_status
    account_list = Accounts(inst, basedn).filter(filter, scope)
  File "/usr/lib/python3.9/site-packages/lib389/_mapped_object.py", line 1264, in filter
    results = self._instance.search_ext_s(
  File "/usr/lib/python3.9/site-packages/lib389/__init__.py", line 174, in inner
    return f(*args, **kwargs)
  File "/usr/lib64/python3.9/site-packages/ldap/ldapobject.py", line 863, in search_ext_s
    msgid = self.search_ext(base,scope,filterstr,attrlist,attrsonly,serverctrls,clientctrls,timeout,sizelimit)
  File "/usr/lib/python3.9/site-packages/lib389/__init__.py", line 174, in inner
    return f(*args, **kwargs)
  File "/usr/lib64/python3.9/site-packages/ldap/ldapobject.py", line 853, in search_ext
    return self._ldap_call(
  File "/usr/lib/python3.9/site-packages/lib389/__init__.py", line 174, in inner
    return f(*args, **kwargs)
  File "/usr/lib64/python3.9/site-packages/ldap/ldapobject.py", line 324, in _ldap_call
    result = func(*args,**kwargs)
TypeError: expected list of strings or None
ERROR: Error: expected list of strings or None


Expected results:


Additional info:

Comment 1 mreynolds 2023-01-06 14:49:23 UTC
Upstream ticket: 

https://github.com/389ds/389-ds-base/issues/5593

Comment 7 errata-xmlrpc 2023-05-30 09:40:35 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 (redhat-ds:12 bug fix and enhancement update), 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-2023:3344