Bug 652816

Summary: TLS_CACERTDIR takes precedence over TLS_CACERT
Product: Red Hat Enterprise Linux 6 Reporter: Rich Megginson <rmeggins>
Component: openldapAssignee: Jan Vcelak <jvcelak>
Status: CLOSED ERRATA QA Contact: Ondrej Moriš <omoris>
Severity: medium Docs Contact:
Priority: medium    
Version: 6.1CC: dspurek, jhrozek, jplans, jvcelak, omoris, rmeggins, rvokal, tsmetana
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
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
Story Points: ---
Clone Of: 652304 Environment:
Last Closed: 2011-05-19 13:59:43 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: 644077, 652304    
Bug Blocks: 642407    

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