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 652816 - TLS_CACERTDIR takes precedence over TLS_CACERT
Summary: TLS_CACERTDIR takes precedence over TLS_CACERT
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: openldap
Version: 6.1
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: rc
: ---
Assignee: Jan Vcelak
QA Contact: Ondrej Moriš
URL:
Whiteboard:
Depends On: 644077 652304
Blocks: 642407
TreeView+ depends on / blocked
 
Reported: 2010-11-12 21:05 UTC by Rich Megginson
Modified: 2016-12-06 16:54 UTC (History)
8 users (show)

Fixed In Version: openldap-2.4.23-4.el6
Doc Type: Bug Fix
Doc Text:
- both TLS_CACERT (bundle file with CA certificates) and TLS_CACERTDIR (directory with CA certificates) were set and some openldap operation with TLS encryption was requested - only TLS_CACERTDIR was used for verification - updated openldap TLS verification code to use firstly TLS_CACERT and secondly TLS_CACERTDIR - openldap CA processing works as described in openldap documentation
Clone Of: 652304
Environment:
Last Closed: 2011-05-19 13:59:43 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2011:0673 0 normal SHIPPED_LIVE openldap bug fix and enhancement update 2011-05-18 18:10:44 UTC

Description Rich Megginson 2010-11-12 21:05:54 UTC
+++ This bug was initially created as a clone of Bug #652304 +++

Description of problem:
When both TLS_CACERTDIR and TLS_CACERT are used, TLS_CACERTDIR takes precedence in F14.

Version-Release number of selected component (if applicable):
openldap-2.4.22-7.fc14.x86_64


How reproducible:
always


Steps to Reproduce:
1. create a certificate somewhere on filesystem, for example /tmp/mycert.crt
2. set TLS_CACERT to /tmp/mycert.crt and TLS_CACERTDIR to (default) /etc/openldap/cacerts
3. run some ldap operation like ldapsearch
  
Actual results:
TLS error


Expected results:
success


Additional info:
This is a regression compared to F13 and to what manpage says

Comment 4 Jan Vcelak 2011-01-13 19:55:42 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:
- both TLS_CACERT (bundle file with CA certificates) and TLS_CACERTDIR (directory with CA certificates) were set and some openldap operation with TLS encryption was requested
- only TLS_CACERTDIR was used for verification
- updated openldap TLS verification code to use firstly TLS_CACERT and secondly TLS_CACERTDIR
- openldap CA processing works as described in openldap documentation

Comment 8 errata-xmlrpc 2011-05-19 13:59:43 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2011-0673.html


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