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 901956 - openldap should create an empty certificate database in /etc/openldap/certs
Summary: openldap should create an empty certificate database in /etc/openldap/certs
Keywords:
Status: CLOSED INSUFFICIENT_DATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: openldap
Version: 6.3
Hardware: Unspecified
OS: Linux
unspecified
medium
Target Milestone: rc
: ---
Assignee: Jan Synacek
QA Contact: BaseOS QE Security Team
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-01-20 07:46 UTC by Ricardo Arguello
Modified: 2013-04-09 07:16 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-04-09 07:16:39 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Ricardo Arguello 2013-01-20 07:46:33 UTC
Description of problem:

The installation script of the openldap rpm includes executing the script:
/usr/libexec/openldap/create-certdb.sh
which supposedly creates an empty certificate database in /etc/openldap/certs

But when you install the openldap package the /etc/openldap/certs is empty.

You have to execute /usr/libexec/openldap/create-certdb.sh in order for this files to appear in /etc/openldap/certs:

cert8.db
key3.db
secmod.db

Those are the empty Mozilla NSS certificate database files.


Version-Release number of selected component (if applicable):
openldap-2.4.23-26.el6.x86_64

How reproducible:

Installing openldap

Steps to Reproduce:
yum install openldap

  
Actual results:
The /etc/openldap/certs directory is empty


Expected results:
The /etc/openldap/certs should have an empty certificate database.

Additional info:

Workaround:
Executing the script manually, and then installing openldap-servers, to execute
/usr/libexec/openldap/generate-server-cert.sh

to generate test certificates.

Comment 2 Jan Vcelak 2013-01-20 12:05:39 UTC
Thank you for the report. I will take a look at it.

Comment 3 Jan Vcelak 2013-01-22 14:08:04 UTC
Ricardo, please, can you provide detailed steps to reproduce the issue? I'm not successful in it. I tried downgrading, upgrading, and reinstalling various versions of the openldap package, but certs directory was always created for me.

Comment 4 Ricardo Arguello 2013-01-22 17:45:46 UTC
The /etc/openldap/certs directory is created indeed, but since the /usr/libexec/openldap/create-certdb.sh is executed from the rpm installation, it should have created an empty certificate *database*, with these files:

/etc/openldap/certscert8.db
/etc/openldap/certskey3.db
/etc/openldap/certssecmod.db

Those files don't exist after installing opendap. They should existe because the /usr/libexec/openldap/create-certdb.sh script is invoked as part of the installation in rpm.

Comment 5 Jan Vcelak 2013-01-22 18:19:56 UTC
Yes, I know how it should work. The thing is that it works for me just fine. Please, can you provide exact steps to reproduce?

$ ls /etc/openldap/certs/
cert8.db  key3.db  password  secmod.db

Comment 7 Jan Synacek 2013-04-09 07:16:39 UTC
This bugzilla has stalled on needinfo for a long time. Closing it now.


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