| Summary: | slapd doesn't start at boot when not using network manager. | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 7 | Reporter: | Tyler Burns <tburns> |
| Component: | openldap | Assignee: | Matus Honek <mhonek> |
| Status: | CLOSED DUPLICATE | QA Contact: | BaseOS QE Security Team <qe-baseos-security> |
| Severity: | high | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 7.2 | CC: | pkis |
| Target Milestone: | rc | ||
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2016-10-11 12:13:26 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
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 *** |
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