Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
For bugs related to Red Hat Enterprise Linux 5 product line. The current stable release is 5.10. For Red Hat Enterprise Linux 6 and above, please visit Red Hat JIRA https://issues.redhat.com/secure/CreateIssue!default.jspa?pid=12332745 to report new issues.

Bug 481003

Summary: Wrong init script : slapd always starts with option "ldap:///"
Product: Red Hat Enterprise Linux 5 Reporter: Jeremy <jaj>
Component: openldapAssignee: Jan Zeleny <jzeleny>
Status: CLOSED ERRATA QA Contact: BaseOS QE <qe-baseos-auto>
Severity: low Docs Contact:
Priority: low    
Version: 5.2CC: dspurek, jplans, omoris, ovasik
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-03-30 08:05:49 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 Jeremy 2009-01-21 17:24:09 UTC
Description of problem:
slapd always starts with option ldap:/// when we use the init script.



Version-Release number of selected component (if applicable):
openldap-servers-2.3.27-8.el5_1.3

How reproducible:
Configure openldap with TLS and launch it with the init script

Steps to Reproduce:
1. activate TLS in /etc/openldap/slapd.conf
2. service ldap start
3. check with "ps -ef |grep ldap" or "netstat -puante |grep slapd"
  
Actual results:
slapd still listen on port 389 because it's launched with the following command :
/usr/sbin/slapd -h ldap:/// ldaps:/// -u ldap

Expected results:
It would only listen 636 and use "/usr/sbin/slapd -h ldaps:/// -u ldap"
Better, we should have the choice to use :
- ldap
or
- ldaps
or
- ldap & ldaps

Additional info:
The file /etc/rc.d/init.d/ldap define a variable row 146 : 
        harg="ldap:///"
The problem seems to be in the concatenation row 148 :
            harg="$harg ldaps:///"

Comment 3 Jan Zeleny 2009-11-16 09:49:42 UTC
Patch is in CVS, changing status to MODIFIED.

Comment 5 Ondrej Moriš 2010-01-12 08:50:18 UTC
Successfully verified on i386 and x86_64.

RHTS test created.

Comment 7 errata-xmlrpc 2010-03-30 08:05:49 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 therefore 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/RHSA-2010-0198.html