Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dsidm account subtree-status fails with TypeError #5593

Closed
mreynolds389 opened this issue Jan 6, 2023 · 1 comment
Closed

dsidm account subtree-status fails with TypeError #5593

mreynolds389 opened this issue Jan 6, 2023 · 1 comment
Assignees
Labels
CLI CLI tools

Comments

@mreynolds389
Copy link
Contributor

Issue Description

Running "dsidm account subtree-status" command fails with TypeError.

Steps to Reproduce

#  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
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

@mreynolds389 mreynolds389 added the needs triage The issue will be triaged during scrum label Jan 6, 2023
@mreynolds389 mreynolds389 self-assigned this Jan 6, 2023
mreynolds389 added a commit to mreynolds389/389-ds-base that referenced this issue Jan 10, 2023
Description: The was a problem with the function parameters being passed to the
filter method, and we were missing a parameter for the print entry function.

relates: 389ds#5593

Reviewed by: spichugi(Thanks!)
mreynolds389 added a commit that referenced this issue Jan 10, 2023
Description: The was a problem with the function parameters being passed to the
filter method, and we were missing a parameter for the print entry function.

relates: #5593

Reviewed by: spichugi(Thanks!)
mreynolds389 added a commit that referenced this issue Jan 10, 2023
Description: The was a problem with the function parameters being passed to the
filter method, and we were missing a parameter for the print entry function.

relates: #5593

Reviewed by: spichugi(Thanks!)
mreynolds389 added a commit that referenced this issue Jan 10, 2023
Description: The was a problem with the function parameters being passed to the
filter method, and we were missing a parameter for the print entry function.

relates: #5593

Reviewed by: spichugi(Thanks!)
mreynolds389 added a commit that referenced this issue Jan 10, 2023
Description: The was a problem with the function parameters being passed to the
filter method, and we were missing a parameter for the print entry function.

relates: #5593

Reviewed by: spichugi(Thanks!)
mreynolds389 added a commit that referenced this issue Jan 10, 2023
Description: The was a problem with the function parameters being passed to the
filter method, and we were missing a parameter for the print entry function.

relates: #5593

Reviewed by: spichugi(Thanks!)
@mreynolds389 mreynolds389 added CLI CLI tools and removed needs triage The issue will be triaged during scrum labels Jan 10, 2023
@mreynolds389
Copy link
Contributor Author

8fa6533..c81ee34 389-ds-base-2.2 -> 389-ds-base-2.2
bc03cb9..9398b86 389-ds-base-2.1 -> 389-ds-base-2.1
a63e226..ff6dbd9 389-ds-base-2.0 -> 389-ds-base-2.0
be8e418..74ebe98 389-ds-base-1.4.3 -> 389-ds-base-1.4.3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLI CLI tools
Projects
None yet
Development

No branches or pull requests

1 participant