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 742023 - Default SSL certificate bundle is not found by openldap library
Summary: Default SSL certificate bundle is not found by openldap library
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: openldap
Version: 6.1
Hardware: Unspecified
OS: Linux
medium
medium
Target Milestone: rc
: ---
Assignee: Jan Vcelak
QA Contact: BaseOS QE Security Team
URL:
Whiteboard:
Depends On:
Blocks: 789088
TreeView+ depends on / blocked
 
Reported: 2011-09-28 19:45 UTC by advax
Modified: 2013-03-04 01:29 UTC (History)
5 users (show)

Fixed In Version: openldap-2.4.23-26.el6
Doc Type: Bug Fix
Doc Text:
- client establishes TLS connection to a remote server, which has a certificate issued by a commonly trusted CA - server certificate is rejected because the CA certificate cannot be found - during the package installation, certificate database is created and a module with trusted root CA is loaded into it, default configuration uses this certificate database - after default installation, client can establish TLS connection to a remote server, which has a certificate issued by a commonly trusted CA; trusted CA shipped with Mozilla NSS package are used
Clone Of:
: 789088 (view as bug list)
Environment:
Last Closed: 2012-06-20 07:28:59 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2012:0899 0 normal SHIPPED_LIVE Low: openldap security and bug fix update 2012-06-19 19:28:37 UTC

Description advax 2011-09-28 19:45:59 UTC
Description of problem:

openldap clients e.g. ldapsearch and software linked with openldap libraries e.g. Apache mod_authnz_ldap fail to connect to servers when using TLS

Version-Release number of selected component (if applicable):

openldap-2.4.23-15.el6_1.3.x86_64

How reproducible:

Always

Steps to Reproduce:
1. ldapsearch -x -H ldaps://ldap.example.com  -b dc=example -Z "cn=joe" cn
  
Actual results:
ldap_start_tls: Connect error
  additional info: TLS error -8172

Expected results:
cn: User, Joe


Additional info:

The config file /etc/openldap/ldap.conf packaged with openldap does not contain an entry for the certificate bundle e.g. ca-certificates-2010.63-3.el6_1.5.noarch shipped with RHEL6
Adding an entry
  TLS_CACERT /etc/pki/tls/certs/ca-bundle.crt
fixes the problem, at least where the server certicate authority is included in the bundle.

In previous versions of RHEL e.g. RHEL5, openldap did not seem to check certificate chains so that a default install worked.

(The Apache module mod_authnz_ldap returns no details in /var/log/httpd/*
which makes diagnosis difficult)

Comment 8 Jan Synacek 2012-03-01 11:04:05 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:
- always
- it's not possible to connect to openldap server using certificates
- sample server-side certificates are generated during installation
- it is possible to connect to openldap server using certificates

Comment 9 Jan Vcelak 2012-03-01 12:46:39 UTC
    Technical note updated. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    Diffed Contents:
@@ -1,4 +1,4 @@
-- always
+- client establishes TLS connection to a remote server, which has a certificate issued by a commonly trusted CA
-- it's not possible to connect to openldap server using certificates
+- server certificate is rejected because the CA certificate cannot be found
-- sample server-side certificates are generated during installation
+- during the package installation, certificate database is created and a module with trusted root CA is loaded into it, default configuration uses this certificate database
-- it is possible to connect to openldap server using certificates+- after default installation, client can establish TLS connection to a remote server, which has a certificate issued by a commonly trusted CA; trusted CA shipped with Mozilla NSS package are used

Comment 10 David Spurek 2012-04-30 12:04:27 UTC
ldap.conf file is generated bad, default value of TLS_CACERTDIR missing.

Comment 11 Jan Vcelak 2012-04-30 12:16:45 UTC
The fix is incomplete.

Comment 21 errata-xmlrpc 2012-06-20 07:28:59 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-2012-0899.html


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