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 1563080 - libldap tlsmc continue even after it fails to extract CA certificate [rhel-7.5.z]
Summary: libldap tlsmc continue even after it fails to extract CA certificate [rhel-7....
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: openldap
Version: 7.5
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: rc
: ---
Assignee: Matus Honek
QA Contact: Patrik Kis
URL:
Whiteboard:
Depends On: 1547922
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-04-03 07:01 UTC by Oneata Mircea Teodor
Modified: 2018-07-19 02:21 UTC (History)
7 users (show)

Fixed In Version: openldap-2.4.44-15.el7_5
Doc Type: If docs needed, set a value
Doc Text:
Previously, during an OpenLDAP server upgrade, CA certificates were sometimes not extracted correctly due to SELinux policies not having been upgraded yet at the time. Consequently, the OpenLDAP server did not start after the upgrade as expected, and the administrator had to remove the /tmp/openldap-tlsmc* directories manually for the server to start. This update ensures that slapd correctly recreates the CA certificates. As a result, the OpenLDAP server starts correctly in the described scenario.
Clone Of: 1547922
Environment:
Last Closed: 2018-05-14 16:10:58 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2018:1389 0 None None None 2018-05-14 16:11:02 UTC

Description Oneata Mircea Teodor 2018-04-03 07:01:12 UTC
This bug has been copied from bug #1547922 and has been proposed to be backported to 7.5 z-stream (EUS).

Comment 4 Patrik Kis 2018-04-12 07:51:07 UTC
The test with upgrade from RHEL-7.3 proved that the issue was mitigated.
During the upgrade the server certificate files in tmp directory could not been created, but the temporary certificate directory was not lefty in inconsistent state so manual restart of the slapd daemon restored the service.


# rpm -q openldap
openldap-2.4.40-13.el7.x86_64
# yum update
... %< ...
---> Package openldap.x86_64 0:2.4.40-13.el7 will be updated
---> Package openldap.x86_64 0:2.4.44-16.el7 will be an update
---> Package openldap-clients.x86_64 0:2.4.40-13.el7 will be updated
---> Package openldap-clients.x86_64 0:2.4.44-16.el7 will be an update
---> Package openldap-servers.x86_64 0:2.4.40-13.el7 will be updated
---> Package openldap-servers.x86_64 0:2.4.44-16.el7 will be an update
... %< ...
Complete!
# rpm -q openldap
openldap-2.4.44-16.el7.x86_64
#
#
# ll /tmp/openldap-tlsmc-certs--2DFC65D7E76F2B10A5D1B751E42AB3C7A11D1DD635A2F8AF767FCF5AD8EDA4EB/cacerts/
total 4
-r--------. 1 ldap ldap 1522 Apr 12 02:29 cert0.pem

# ldapsearch -ZZ -H ldap://my-domain.com -x '*'ldap_start_tls: Can't contact LDAP server (-1)
#
# ps -ef |grep slapd
root     25352 17318  0 03:08 pts/0    00:00:00 grep --color=auto slapd
# service slapd restart
Redirecting to /bin/systemctl restart slapd.service
# ll /tmp/openldap-tlsmc-certs--2DFC65D7E76F2B10A5D1B751E42AB3C7A11D1DD635A2F8AF767FCF5AD8EDA4EB/cacerts/
total 12
lrwxrwxrwx. 1 ldap ldap    9 Apr 12 03:08 1c3035cc.0 -> cert2.pem
lrwxrwxrwx. 1 ldap ldap    9 Apr 12 03:08 82204446.0 -> cert0.pem
lrwxrwxrwx. 1 ldap ldap    9 Apr 12 03:08 be4aa8c4.0 -> cert1.pem
-r--------. 1 ldap ldap 1522 Apr 12 03:08 cert0.pem
-r--------. 1 ldap ldap 1559 Apr 12 03:08 cert1.pem
-r--------. 1 ldap ldap 1578 Apr 12 03:08 cert2.pem
#
# ldapsearch -LLL -ZZ -H ldap://my-domain.com -x 
dn: dc=my-domain,dc=com
objectClass: dcObject
objectClass: organization
dc: my-domain
o: my-domain
description: my-domain

Comment 12 errata-xmlrpc 2018-05-14 16:10:58 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.

https://access.redhat.com/errata/RHBA-2018:1389


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