Bug 1383666 - slapd doesn't start at boot when not using network manager.
Summary: slapd doesn't start at boot when not using network manager.
Keywords:
Status: CLOSED DUPLICATE of bug 1315958
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: openldap
Version: 7.2
Hardware: All
OS: Linux
unspecified
high
Target Milestone: rc
: ---
Assignee: Matus Honek
QA Contact: BaseOS QE Security Team
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-10-11 12:03 UTC by Tyler Burns
Modified: 2016-10-11 12:13 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-10-11 12:13:26 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description Tyler Burns 2016-10-11 12:03:08 UTC
Description of problem:

slapd doesn't start on boot when NetworkManager is removed.

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

openldap-servers-2.4.40-9.el7_2.x86_64
openldap-2.4.40-9.el7_2.x86_64


How reproducible:

Install slapd, enable the service, remove network manager, configure NICs to NOT use NM, and reboot. Notice it does not start at boot.


Steps to Reproduce:
1. Install openldap-servers-2.4.40-9.el7_2.x86_64
2. Enable slapd
3. Remove network manager
4. Configure NICs
5. Restart the network and verify connectivity
6. Reboot 

Actual results:

slapd doesn't start at boot

Expected results:

slapd should start at boot

Additional info:

The problem is the systemd unit file:

/usr/lib/systemd/system/slapd.service contains:

[Unit]
Description=OpenLDAP Server Daemon
After=syslog.target NetworkManager-wait-online.service
Documentation=man:slapd
Documentation=man:slapd-config
Documentation=man:slapd-hdb
Documentation=man:slapd-mdb
Documentation=file:///usr/share/doc/openldap-servers/guide.html

[Service]
Type=forking
PIDFile=/var/run/openldap/slapd.pid
Environment="SLAPD_URLS=ldap:/// ldapi:///" "SLAPD_OPTIONS="
EnvironmentFile=/etc/sysconfig/slapd
ExecStartPre=/usr/libexec/openldap/check-config.sh
ExecStart=/usr/sbin/slapd -u ldap -h ${SLAPD_URLS} $SLAPD_OPTIONS

[Install]
WantedBy=multi-user.target

---------------------

The After= line should be:

After=syslog.target network.target

Comment 1 Matus Honek 2016-10-11 12:13:26 UTC
Thanks for reporting this. However, this issue has been already reported and is planned to be fixed with next release.

*** This bug has been marked as a duplicate of bug 1315958 ***


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