Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
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.
Description of problem:
When setting seealso attr empty with selinuxusermap-mod, I see an internal error.
Version-Release number of selected component (if applicable):
ipa-server-3.0.0-21.el6.x86_64
How reproducible:
always
Steps to Reproduce:
1. Install RHEL6.4 IPA Master server
2. ipa selinuxusermap-add --desc=test1 --selinuxuser="unconfined_u:s0-s0:c0.c1023" test1
3. ipa selinuxusermap-mod test1 --setattr seealso=
Actual results:
[root@rhel6-4 ~]# ipa selinuxusermap-mod test1 --setattr seealso=
dipa: ERROR: an internal error has occurred
Expected results:
proper error/behavior. Internal error shouldn't be seen there.
Additional info:
/var/log/httpd/error_log:
[Mon Jan 14 16:16:00 2013] [error] ipa: ERROR: non-public: TypeError: must be str,unicode,tuple, or RDN, got NoneType instead
[Mon Jan 14 16:16:00 2013] [error] Traceback (most recent call last):
[Mon Jan 14 16:16:00 2013] [error] File "/usr/lib/python2.6/site-packages/ipaserver/rpcserver.py", line 334, in wsgi_execute
[Mon Jan 14 16:16:00 2013] [error] result = self.Command[name](*args, **options)
[Mon Jan 14 16:16:00 2013] [error] File "/usr/lib/python2.6/site-packages/ipalib/frontend.py", line 435, in __call__
[Mon Jan 14 16:16:00 2013] [error] ret = self.run(*args, **options)
[Mon Jan 14 16:16:00 2013] [error] File "/usr/lib/python2.6/site-packages/ipalib/frontend.py", line 747, in run
[Mon Jan 14 16:16:00 2013] [error] return self.execute(*args, **options)
[Mon Jan 14 16:16:00 2013] [error] File "/usr/lib/python2.6/site-packages/ipalib/plugins/baseldap.py", line 1303, in execute
[Mon Jan 14 16:16:00 2013] [error] self.process_attr_options(entry_attrs, dn, keys, options)
[Mon Jan 14 16:16:00 2013] [error] File "/usr/lib/python2.6/site-packages/ipalib/plugins/baseldap.py", line 864, in process_attr_options
[Mon Jan 14 16:16:00 2013] [error] setdict = self._convert_2_dict(ldap, options.get('setattr', []))
[Mon Jan 14 16:16:00 2013] [error] File "/usr/lib/python2.6/site-packages/ipalib/plugins/baseldap.py", line 817, in _convert_2_dict
[Mon Jan 14 16:16:00 2013] [error] value = DN(value)
[Mon Jan 14 16:16:00 2013] [error] File "/usr/lib/python2.6/site-packages/ipapython/dn.py", line 1221, in __init__
[Mon Jan 14 16:16:00 2013] [error] self.rdns = self._rdns_from_sequence(args)
[Mon Jan 14 16:16:00 2013] [error] File "/usr/lib/python2.6/site-packages/ipapython/dn.py", line 1263, in _rdns_from_sequence
[Mon Jan 14 16:16:00 2013] [error] rdn = self._rdn_from_value(item)
[Mon Jan 14 16:16:00 2013] [error] File "/usr/lib/python2.6/site-packages/ipapython/dn.py", line 1257, in _rdn_from_value
[Mon Jan 14 16:16:00 2013] [error] value.__class__.__name__)
[Mon Jan 14 16:16:00 2013] [error] TypeError: must be str,unicode,tuple, or RDN, got NoneType instead
[Mon Jan 14 16:16:00 2013] [error] ipa: INFO: admin: selinuxusermap_mod(u'test1', setattr=(u'seealso=',), rights=False, all=False, raw=False, version=u'2.46'): TypeError
This request was resolved in Red Hat Enterprise Linux 7.0.
Contact your manager or support representative in case you have further questions about the request.
Description of problem: When setting seealso attr empty with selinuxusermap-mod, I see an internal error. Version-Release number of selected component (if applicable): ipa-server-3.0.0-21.el6.x86_64 How reproducible: always Steps to Reproduce: 1. Install RHEL6.4 IPA Master server 2. ipa selinuxusermap-add --desc=test1 --selinuxuser="unconfined_u:s0-s0:c0.c1023" test1 3. ipa selinuxusermap-mod test1 --setattr seealso= Actual results: [root@rhel6-4 ~]# ipa selinuxusermap-mod test1 --setattr seealso= dipa: ERROR: an internal error has occurred Expected results: proper error/behavior. Internal error shouldn't be seen there. Additional info: /var/log/httpd/error_log: [Mon Jan 14 16:16:00 2013] [error] ipa: ERROR: non-public: TypeError: must be str,unicode,tuple, or RDN, got NoneType instead [Mon Jan 14 16:16:00 2013] [error] Traceback (most recent call last): [Mon Jan 14 16:16:00 2013] [error] File "/usr/lib/python2.6/site-packages/ipaserver/rpcserver.py", line 334, in wsgi_execute [Mon Jan 14 16:16:00 2013] [error] result = self.Command[name](*args, **options) [Mon Jan 14 16:16:00 2013] [error] File "/usr/lib/python2.6/site-packages/ipalib/frontend.py", line 435, in __call__ [Mon Jan 14 16:16:00 2013] [error] ret = self.run(*args, **options) [Mon Jan 14 16:16:00 2013] [error] File "/usr/lib/python2.6/site-packages/ipalib/frontend.py", line 747, in run [Mon Jan 14 16:16:00 2013] [error] return self.execute(*args, **options) [Mon Jan 14 16:16:00 2013] [error] File "/usr/lib/python2.6/site-packages/ipalib/plugins/baseldap.py", line 1303, in execute [Mon Jan 14 16:16:00 2013] [error] self.process_attr_options(entry_attrs, dn, keys, options) [Mon Jan 14 16:16:00 2013] [error] File "/usr/lib/python2.6/site-packages/ipalib/plugins/baseldap.py", line 864, in process_attr_options [Mon Jan 14 16:16:00 2013] [error] setdict = self._convert_2_dict(ldap, options.get('setattr', [])) [Mon Jan 14 16:16:00 2013] [error] File "/usr/lib/python2.6/site-packages/ipalib/plugins/baseldap.py", line 817, in _convert_2_dict [Mon Jan 14 16:16:00 2013] [error] value = DN(value) [Mon Jan 14 16:16:00 2013] [error] File "/usr/lib/python2.6/site-packages/ipapython/dn.py", line 1221, in __init__ [Mon Jan 14 16:16:00 2013] [error] self.rdns = self._rdns_from_sequence(args) [Mon Jan 14 16:16:00 2013] [error] File "/usr/lib/python2.6/site-packages/ipapython/dn.py", line 1263, in _rdns_from_sequence [Mon Jan 14 16:16:00 2013] [error] rdn = self._rdn_from_value(item) [Mon Jan 14 16:16:00 2013] [error] File "/usr/lib/python2.6/site-packages/ipapython/dn.py", line 1257, in _rdn_from_value [Mon Jan 14 16:16:00 2013] [error] value.__class__.__name__) [Mon Jan 14 16:16:00 2013] [error] TypeError: must be str,unicode,tuple, or RDN, got NoneType instead [Mon Jan 14 16:16:00 2013] [error] ipa: INFO: admin: selinuxusermap_mod(u'test1', setattr=(u'seealso=',), rights=False, all=False, raw=False, version=u'2.46'): TypeError