Bug 481003 - Wrong init script : slapd always starts with option "ldap:///"
Wrong init script : slapd always starts with option "ldap:///"
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: openldap (Show other bugs)
All Linux
low Severity low
: ---
: ---
Assigned To: Jan Zeleny
Depends On:
  Show dependency treegraph
Reported: 2009-01-21 12:24 EST by Jeremy
Modified: 2012-10-15 04:51 EDT (History)
4 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2010-03-30 04:05:49 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2010:0198 normal SHIPPED_LIVE Moderate: openldap security and bug fix update 2010-03-29 09:22:42 EDT

  None (edit)
Description Jeremy 2009-01-21 12:24:09 EST
Description of problem:
slapd always starts with option ldap:/// when we use the init script.

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

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
- ldaps
- ldap & ldaps

Additional info:
The file /etc/rc.d/init.d/ldap define a variable row 146 : 
The problem seems to be in the concatenation row 148 :
            harg="$harg ldaps:///"
Comment 3 Jan Zeleny 2009-11-16 04:49:42 EST
Patch is in CVS, changing status to MODIFIED.
Comment 5 Ondrej Moriš 2010-01-12 03:50:18 EST
Successfully verified on i386 and x86_64.

RHTS test created.
Comment 7 errata-xmlrpc 2010-03-30 04:05:49 EDT
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.


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