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 947243

Summary: Server should return unavailableCriticalExtension when processing a badly formed critical control
Product: Red Hat Enterprise Linux 7 Reporter: Nathan Kinder <nkinder>
Component: 389-ds-baseAssignee: Rich Megginson <rmeggins>
Status: CLOSED CURRENTRELEASE QA Contact: IDM QE LIST <seceng-idm-qe-list>
Severity: unspecified Docs Contact:
Priority: medium    
Version: 7.0CC: amsharma, jgalipea, nhosoi, tbordaz
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 389-ds-base-1.3.1.2-1.el7 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-06-13 09:54:28 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:

Description Nathan Kinder 2013-04-01 21:18:21 UTC
This bug is created as a clone of upstream ticket:
https://fedorahosted.org/389/ticket/600

According to http://www.ietf.org/rfc/rfc4511.txt, the server should return unavailableCriticalExtension when receiving a badly formed critical control (null length or/and null value). Currently the return value is always protocol error whatever the critical flag is true/fals

Comment 1 Rich Megginson 2013-10-01 23:24:05 UTC
moving all ON_QA bugs to MODIFIED in order to add them to the errata (can't add bugs in the ON_QA state to an errata).  When the errata is created, the bugs should be automatically moved back to ON_QA.

Comment 5 Amita Sharma 2014-02-05 12:56:16 UTC
I tried doing it but it ran into many dependency issues, some I resolved but there raised many more.
Did it successfully with Thierry on his system. Thanks Thierry for help.

Marking it as VERIFIED on the basis of Thierry's test execution.

Comment 6 Amita Sharma 2014-02-05 13:23:05 UTC
I tried it again on Milan's system(Thanks Milan) and got segfault::
[root@hp-dl380pgen8-02-vm-8 export]# ./search_critical_ctl
Test OID: 2.16.840.1.113730.3.4.4 (val=, len=0)
ldap_search_ext_s: Unavailable critical extension		=> PASS
Test OID: 2.16.840.1.113730.3.4.5 (val=, len=0)
ldap_search_ext_s: Unavailable critical extension		=> PASS
Test OID: 1.2.840.113556.1.4.473 (val=, len=0)
ldap_search_ext_s: Unavailable critical extension		=> PASS
Segmentation fault

request Theirry to please help.

Thanks,
Ami

Comment 8 Amita Sharma 2014-02-05 13:40:30 UTC
Thanks Thierry

[root@hp-dl380pgen8-02-vm-8 export]# ./search_critical_ctl_new
Test OID: 2.16.840.1.113730.3.4.4 (val=, len=0)
ldap_search_ext_s: Unavailable critical extension		=> PASS
Test OID: 2.16.840.1.113730.3.4.5 (val=, len=0)
ldap_search_ext_s: Unavailable critical extension		=> PASS
Test OID: 1.2.840.113556.1.4.473 (val=, len=0)
ldap_search_ext_s: Unavailable critical extension		=> PASS
Test OID: 2.16.840.1.113730.3.4.9 (val=, len=0) + sort control
ldap_search_ext_s: Unavailable critical extension		=> PASS
Test OID: 2.16.840.1.113730.3.4.16 (val=, len=0)
ldap_search_ext_s: Unavailable critical extension		=> PASS
Test OID: 2.16.840.1.113730.3.4.15 (val=, len=0)
ldap_search_ext_s: Unavailable critical extension		=> PASS
Test OID: 1.3.6.1.4.1.42.2.27.9.5.2 (val=, len=0)
ldap_search_ext_s: Unavailable critical extension		=> PASS
Test OID: 1.2.840.113556.1.4.319 (val=, len=0)
ldap_search_ext_s: Unavailable critical extension		=> PASS
Test OID: 1.3.6.1.4.1.4203.666.5.16 (val=, len=0)
ldap_search_ext_s: Unavailable critical extension		=> PASS
Test OID: 2.16.840.1.113730.3.4.14 (val=, len=0)
ldap_search_ext_s: Unavailable critical extension		=> PASS
Test OID: 2.16.840.1.113730.3.4.12 (val=, len=0)
ldap_search_ext_s: Unavailable critical extension		=> PASS
Test OID: 2.16.840.1.113730.3.4.18 (val=, len=0)
ldap_search_ext_s: Unavailable critical extension		=> PASS

Hence marking VERIFIED

Comment 9 Ludek Smid 2014-06-13 09:54:28 UTC
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.