Hide Forgot
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)
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
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
ldap.conf file is generated bad, default value of TLS_CACERTDIR missing.
The fix is incomplete.
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