Issue with dsidm command
Environment
Red Hat Directory Server 11
Issue
It happens that the dsidm command crashes with this error :
TypeError: search_ext() argument 1 must be str, not None
ERROR: Error: search_ext() argument 1 must be str, not None
We see this message in the debug logs :
DEBUG: None get_attrs_vals_utf8(['stateattrname', 'altstateattrname', 'specattrname', 'limitattrname'])
The python stack trace is as follows :
Traceback (most recent call last):
File "/usr/sbin/dsidm", line 130, in <module>
result = args.func(inst, dsrc_inst['basedn'], log, args)
File "/usr/lib/python3.6/site-packages/lib389/cli_idm/account.py", line 70, in entry_status
status = acct.status()
File "/usr/lib/python3.6/site-packages/lib389/idm/account.py", line 106, in status
"specattrname", "limitattrname"])
File "/usr/lib/python3.6/site-packages/lib389/_mapped_object.py", line 628, in get_attrs_vals_utf8
escapehatch='i am sure')[0]
File "/usr/lib/python3.6/site-packages/lib389/__init__.py", line 175, in inner
return f(*args, **kwargs)
File "/usr/lib64/python3.6/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.6/site-packages/lib389/__init__.py", line 175, in inner
return f(*args, **kwargs)
File "/usr/lib64/python3.6/site-packages/ldap/ldapobject.py", line 859, in search_ext
timeout,sizelimit,
File "/usr/lib/python3.6/site-packages/lib389/__init__.py", line 175, in inner
return f(*args, **kwargs)
File "/usr/lib64/python3.6/site-packages/ldap/ldapobject.py", line 324, in _ldap_call
result = func(*args,**kwargs)
TypeError: search_ext() argument 1 must be str, not None
ERROR: Error: search_ext() argument 1 must be str, not None
Resolution
This issue has been fixed in RHDS 11.4
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.
Comments