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.

Bug 742973

Summary: ipa-managed-entries traceback
Product: Red Hat Enterprise Linux 6 Reporter: Jenny Severance <jgalipea>
Component: ipaAssignee: Rob Crittenden <rcritten>
Status: CLOSED ERRATA QA Contact: IDM QE LIST <seceng-idm-qe-list>
Severity: unspecified Docs Contact:
Priority: high    
Version: 6.1CC: dpal, mkosek
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ipa-2.2.0-1.el6 Doc Type: Bug Fix
Doc Text:
No documentation needed.
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-06-20 13:14:31 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 756082    

Description Jenny Severance 2011-10-03 13:16:24 UTC
Description of problem:
Trying to get a list of available managed entries returns traceback.

# ipa-managed-entries -l -p <dm_password>
Traceback (most recent call last):
  File "/usr/sbin/ipa-managed-entries", line 238, in <module>
    sys.exit(main())
  File "/usr/sbin/ipa-managed-entries", line 126, in main
    managed_entry_definitions_dn, ldap.SCOPE_SUBTREE, filter
  File "/usr/lib/python2.6/site-packages/ipaserver/ipaldap.py", line 204, in inner
    return f(*args, **kargs)
  File "/usr/lib64/python2.6/site-packages/ldap/ldapobject.py", line 516, in search_s
    return self.search_ext_s(base,scope,filterstr,attrlist,attrsonly,None,None,timeout=self.timeout)
  File "/usr/lib/python2.6/site-packages/ipaserver/ipaldap.py", line 204, in inner
    return f(*args, **kargs)
  File "/usr/lib64/python2.6/site-packages/ldap/ldapobject.py", line 510, in search_ext_s
    return self.result(msgid,all=1,timeout=timeout)[1]
  File "/usr/lib/python2.6/site-packages/ipaserver/ipaldap.py", line 181, in inner
    objtype, data = f(*args, **kargs)
  File "/usr/lib64/python2.6/site-packages/ldap/ldapobject.py", line 436, in result
    res_type,res_data,res_msgid = self.result2(msgid,all,timeout)
  File "/usr/lib/python2.6/site-packages/ipaserver/ipaldap.py", line 204, in inner
    return f(*args, **kargs)
  File "/usr/lib64/python2.6/site-packages/ldap/ldapobject.py", line 440, in result2
    res_type, res_data, res_msgid, srv_ctrls = self.result3(msgid,all,timeout)
  File "/usr/lib/python2.6/site-packages/ipaserver/ipaldap.py", line 204, in inner
    return f(*args, **kargs)
  File "/usr/lib64/python2.6/site-packages/ldap/ldapobject.py", line 446, in result3
    ldap_result = self._ldap_call(self._l.result3,msgid,all,timeout)
  File "/usr/lib/python2.6/site-packages/ipaserver/ipaldap.py", line 204, in inner
    return f(*args, **kargs)
  File "/usr/lib64/python2.6/site-packages/ldap/ldapobject.py", line 96, in _ldap_call
    result = func(*args,**kwargs)
ldap.NO_SUCH_OBJECT: {'matched': 'cn=etc,dc=testrelm', 'desc': 'No such object'}



Version-Release number of selected component (if applicable):
ipa-server-2.1.1-101.20111003T0058zgitaaa7c05.el6.x86_64

How reproducible:


Steps to Reproduce:
1.  ipa-managed-entries -l -p <dm_password>
2.
3.
  
Actual results:
see description

Expected results:
list of managed entry DNs that could be enable|disable|status

Additional info:

Comment 1 Martin Kosek 2011-10-03 13:26:52 UTC
Upstream ticket:
https://fedorahosted.org/freeipa/ticket/1912

Comment 4 Rob Crittenden 2012-01-13 04:02:19 UTC
Fixed upstream.

master: 638a9701724e4cf6cb0e11ad5a8c61b37019c797

ipa-2-2: ac7ec7909367362047bf6868fa28b8c8528c7dca

Note that this traceback occurred because there was no managed entries configuration. This may have due to a bad installation or a bad migration. To test that we catch the error message when we can find no managed entries you'd need to delete the entry cn=Definitions, cn=Managed Entries, cn=etc, $SUFFIX

Comment 6 Jenny Severance 2012-03-07 21:09:21 UTC
verified ::

::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:: [   LOG    ] :: List Managed Entries - Supply Password
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

:: [   PASS   ] :: Running 'ipa-managed-entries --list -p Secret123'
:: [   LOG    ] :: Duration: 1s
:: [   LOG    ] :: Assertions: 1 good, 0 bad
:: [   PASS   ] :: RESULT: List Managed Entries - Supply Password

::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:: [   LOG    ] :: List Managed Entries - Prompt for Password
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

:: [   PASS   ] :: Running 'echo Secret123 | ipa-managed-entries -l'
:: [   LOG    ] :: Duration: 1s
:: [   LOG    ] :: Assertions: 1 good, 0 bad
:: [   PASS   ] :: RESULT: List Managed Entries - Prompt for Password


version ::

ipa-server-2.2.0-3.el6.x86_64

Comment 8 Martin Kosek 2012-04-18 20:12:48 UTC
    Technical note added. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    New Contents:
No documentation needed.

Comment 10 errata-xmlrpc 2012-06-20 13:14:31 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/RHBA-2012-0819.html