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.
Bug 893827 - ipa permission-find using valid targetgroup throws internal error
Summary: ipa permission-find using valid targetgroup throws internal error
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: ipa
Version: 6.4
Hardware: Unspecified
OS: Unspecified
high
medium
Target Milestone: rc
: ---
Assignee: Rob Crittenden
QA Contact: Namita Soman
URL:
Whiteboard:
Depends On:
Blocks: 895654
TreeView+ depends on / blocked
 
Reported: 2013-01-10 01:29 UTC by Namita Soman
Modified: 2013-08-19 14:17 UTC (History)
3 users (show)

Fixed In Version: ipa-3.0.0-21.el6
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-02-21 09:32:03 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2013:0528 0 normal SHIPPED_LIVE Low: ipa security, bug fix and enhancement update 2013-02-21 08:22:21 UTC

Description Namita Soman 2013-01-10 01:29:42 UTC
Description of problem:

in 6.3:
# ipa permission-find --targetgroup=ipausers --all
--------------------
1 permission matched
--------------------
  dn: cn=add user to default group,cn=permissions,cn=pbac,dc=testrelm,dc=com
  Permission name: Add user to default group
  Permissions: write
  Attributes: member
  Target group: ipausers
  Granted to Privilege: User Administrators
  memberindirect: cn=user
                  administrators,cn=privileges,cn=pbac,dc=testrelm,dc=com,
                  cn=user administrator,cn=roles,cn=accounts,dc=testrelm,dc=com
  objectclass: top, groupofnames, ipapermission
----------------------------
Number of entries returned 1
----------------------------

in 6.4:
# ipa permission-find --targetgroup=ipausers --all
ipa: ERROR: an internal error has occurred

# ipa permission-show "Add user to default group" --all
  dn: cn=Add user to default group,cn=permissions,cn=pbac,dc=testrelm,dc=com
  Permission name: Add user to default group
  Permissions: write
  Attributes: member
  Target group: ipausers
  Granted to Privilege: User Administrators
  objectclass: top, groupofnames, ipapermission

Version-Release number of selected component (if applicable):
ipa-server-3.0.0-19.el6.x86_64

How reproducible:
always

Steps to Reproduce:
1. ipa permission-find --targetgroup=ipausers --all

  
Actual results:
ipa: ERROR: an internal error has occurred


Expected results:
List permission "Add user to default group" where target group is ipauser

Additional info:
From /var/log/httpd/error_log:

[Wed Jan 09 20:25:59 2013] [error] ipa: ERROR: non-public: TypeError: 'in <string>' requires string as left operand, not DN
[Wed Jan 09 20:25:59 2013] [error] Traceback (most recent call last):
[Wed Jan 09 20:25:59 2013] [error]   File "/usr/lib/python2.6/site-packages/ipaserver/rpcserver.py", line 334, in wsgi_execute
[Wed Jan 09 20:25:59 2013] [error]     result = self.Command[name](*args, **options)
[Wed Jan 09 20:25:59 2013] [error]   File "/usr/lib/python2.6/site-packages/ipalib/frontend.py", line 435, in __call__
[Wed Jan 09 20:25:59 2013] [error]     ret = self.run(*args, **options)
[Wed Jan 09 20:25:59 2013] [error]   File "/usr/lib/python2.6/site-packages/ipalib/frontend.py", line 747, in run
[Wed Jan 09 20:25:59 2013] [error]     return self.execute(*args, **options)
[Wed Jan 09 20:25:59 2013] [error]   File "/usr/lib/python2.6/site-packages/ipalib/plugins/baseldap.py", line 1893, in execute
[Wed Jan 09 20:25:59 2013] [error]     truncated = callback(self, ldap, entries, truncated, *args, **options)
[Wed Jan 09 20:25:59 2013] [error]   File "/usr/lib/python2.6/site-packages/ipalib/plugins/permission.py", line 457, in post_callback
[Wed Jan 09 20:25:59 2013] [error]     aciresults = self.api.Command.aci_find(*args, **opts)
[Wed Jan 09 20:25:59 2013] [error]   File "/usr/lib/python2.6/site-packages/ipalib/frontend.py", line 435, in __call__
[Wed Jan 09 20:25:59 2013] [error]     ret = self.run(*args, **options)
[Wed Jan 09 20:25:59 2013] [error]   File "/usr/lib/python2.6/site-packages/ipalib/frontend.py", line 747, in run
[Wed Jan 09 20:25:59 2013] [error]     return self.execute(*args, **options)
[Wed Jan 09 20:25:59 2013] [error]   File "/usr/lib/python2.6/site-packages/ipalib/plugins/aci.py", line 818, in execute
[Wed Jan 09 20:25:59 2013] [error]     if api.env.container_group in target:
[Wed Jan 09 20:25:59 2013] [error] TypeError: 'in <string>' requires string as left operand, not DN
[Wed Jan 09 20:25:59 2013] [error] ipa: INFO: admin: permission_find(None, targetgroup=u'ipausers', all=True, raw=False, version=u'2.46', pkey_only=False): TypeError

Comment 2 Martin Kosek 2013-01-10 10:55:52 UTC
Upstream ticket:
https://fedorahosted.org/freeipa/ticket/3335

Comment 8 Namita Soman 2013-01-14 14:51:09 UTC
Verified using ipa-server-3.0.0-21.el6.x86_64

::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:: [   LOG    ] :: ipa-permission-cli-1050 - find permission - --targetgroup (bz 893827)
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

:: [09:29:16] ::  Executing: ipa permission-find --targetgroup=ipausers --all
:: [09:29:16] ::  Searching for permissions: Add user to default group
Permission name: Add user to default group
:: [09:29:16] ::  Permission Add user to default group found as expected.
:: [   PASS   ] :: Verify permissions are found for --targetgroup=ipausers
'c1197d08-2511-4559-953f-29df04e2d6a1'
ipa-permission-cli-1050-find-permission-targetgroup-bz-893827- result: PASS

Comment 10 errata-xmlrpc 2013-02-21 09:32:03 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, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHSA-2013-0528.html


Note You need to log in before you can comment on or make changes to this bug.