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 809817 - syncrepl does not work with TLS
Summary: syncrepl does not work with TLS
Keywords:
Status: CLOSED DUPLICATE of bug 707599
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: openldap
Version: 6.4
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: rc
: ---
Assignee: Jan Vcelak
QA Contact: BaseOS QE Security Team
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-04-04 12:55 UTC by Dario Palmisano
Modified: 2013-03-04 01:30 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-04-04 14:54:58 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Dario Palmisano 2012-04-04 12:55:21 UTC
Description of problem:

In a red hat linux free derivative (Scientific Linux) version 6.0, 
I would like to configure an openldap replication (between the master ldapm.icgeb.org and the slave ldaps.icgeb.org).
The syncrepl comsumer is configured as:

syncrepl rid=1
        starttls=critical
        provider="ldap://ldapm.icgeb.org:389"
        type=refreshAndPersist
        searchbase="dc=icgeb,dc=org"
        binddn="cn=ldapReplicator,dc=icgeb,dc=org"
        credentials="******"
        bindmethod=simple
        retry="20 3"

when I restart the consumer, in the slave log I always get:

slap_client_connect: URI=ldap://ldapm.icgeb.org:389 Error, ldap_start_tls failed (-11)

However I can successfully run from the slave:

ldapsearch -d 1 -x -v -D "cn=ldapReplicator,dc=icgeb,dc=org" -W -h ldapm.icgeb.org -p 389 -ZZ

Below I produce, part of, the diagnostic output produced by ldapsearch command related to TLS:

TLS: file ca-m.icgeb.org.crt does not end in [.0] - does not appear to be a CA certificate directory file with a properly hashed file name - skipping.
TLS: loaded CA certificate file /etc/openldap/cacerts/129a25e2.0 from CA certificate directory /etc/openldap/cacerts.
TLS: loaded CA certificate file /etc/openldap/cacerts/fec911d0.0 from CA certificate directory /etc/openldap/cacerts.
TLS: file ldap-ldaps.icgeb.org.key does not end in [.0] - does not appear to be a CA certificate directory file with a properly hashed file name - skipping.
TLS: file ldap-ldaps.icgeb.org.crt does not end in [.0] - does not appear to be a CA certificate directory file with a properly hashed file name - skipping.
TLS: file ca-s.icgeb.org.crt does not end in [.0] - does not appear to be a CA certificate directory file with a properly hashed file name - skipping.
TLS: certificate [E=sysadm,CN=ldapm.icgeb.org,OU=Computer Unit,O=ICGEB,ST=Italy,C=IT] is valid
TLS certificate verification: subject: E=sysadm,CN=ldapm.icgeb.org,OU=Computer Unit,O=ICGEB,ST=Italy,C=IT, issuer: CN=m.icgeb.org,E=sysadm,OU=Computer Unit,O=ICGEB,L=Trieste,ST=Italy,C=IT, cipher: AES-256, security level: high, secret key bits: 256, total key bits: 256, cache hits: 0, cache misses: 0, cache not reusable: 0
Enter LDAP Password: 

Maybe I am wrong somewhere...

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

openldap-2.4.23-20.el6.x86_64
openldap-devel-2.4.23-20.el6.x86_64
openldap-clients-2.4.23-20.el6.x86_64
openldap-servers-2.4.23-20.el6.x86_64

How reproducible:


Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:


Additional info:

Comment 2 Jan Vcelak 2012-04-04 14:54:58 UTC
Hello. Yes, we know about some problems with syncrepl and TLS. As a temporary workaround, set up Mozilla NSS certdb instead of OpenSSL cacert dir (or OpenSSL bundle cacert file).

I'm closing this as a duplicate of bug 707599, because I can reproduce the same symptoms.

*** This bug has been marked as a duplicate of bug 707599 ***


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