Bug 171165

Summary: openldap should give useful error messages on permissions problems
Product: Red Hat Enterprise Linux 4 Reporter: Josh Kelley <joshkel>
Component: openldapAssignee: Jan Safranek <jsafrane>
Status: CLOSED ERRATA QA Contact:
Severity: low Docs Contact:
Priority: medium    
Version: 4.0   
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: RHBA-2007-0739 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2007-11-15 16:03:52 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Josh Kelley 2005-10-18 21:43:06 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.12) Gecko/20050922 Fedora/1.0.7-1.1.fc4 Firefox/1.0.7

Description of problem:
If slapd is configured to use a certificate file or certificate key file that isn't readable by the LDAP user, it fails to start without displaying any useful error message.  Since most services access their certificate keys as root before dropping permissions, checking that the cert keys are readable by the ldap user is not intuitive.

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

How reproducible:
Always

Steps to Reproduce:
1. Edit /etc/openldap/slapd.conf and configure a TLSCertificateFile and TLSCertificateKeyFile.
2. Make one or both files not readable by the ldap user.
3. Start LDAP ("service slapd start").


Actual Results:  "[FAILED]"

Expected Results:  Error message explaining why it failed.

Additional info:

Comment 1 Jan Safranek 2007-06-21 14:25:09 UTC
init script will now display [WARNINIG] which will describe permission problem
(as in RHEL 5 and Fedora)

Comment 2 RHEL Program Management 2007-06-21 14:34:10 UTC
This request was evaluated by Red Hat Product Management for inclusion in a Red
Hat Enterprise Linux maintenance release.  Product Management has requested
further review of this request by Red Hat Engineering, for potential
inclusion in a Red Hat Enterprise Linux Update release for currently deployed
products.  This request is not yet committed for inclusion in an Update
release.

Comment 7 errata-xmlrpc 2007-11-15 16:03:52 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2007-0739.html